circuitpython/shared-bindings/displayio
Jeff Epler c34b6f757f Implement gifio.GifWriter
This involves:
 * Adding a new "L8" colorspace for colorconverters
 * factoring out displayio_colorconverter_convert_pixel
 * Making a minimal "colorspace only" version of displayio for the
   unix port (testing purposes)
 * fixing an error message

I only tested writing B&W animated images, with the following script:
```python
import displayio
import gifio

with gifio.GifWriter("foo.gif", 64, 64, displayio.Colorspace.L8) as g:
    for i in range(0, 256, 14):
        data = bytes([i, 255-i] * 32 + [255-i, i] * 32) * 32
        print("add_frame")
        g.add_frame(data)

# expected to raise an error, buffer is not big enough
with gifio.GifWriter("/dev/null", 64, 64, displayio.Colorspace.L8) as g:
    g.add_frame(bytes([3,3,3]))
```
2021-10-26 08:54:18 -05:00
..
__init__.c Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
__init__.h Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
Bitmap.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
Bitmap.h displayio.Bitmap: Make memoryview()able 2021-03-17 16:26:45 -05:00
ColorConverter.c Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
ColorConverter.h Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
Colorspace.c Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
Display.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
Display.h Deprecate Display's constructor arg set_vertical_scroll 2021-08-23 09:17:59 -05:00
EPaperDisplay.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
EPaperDisplay.h Fixing comments for PR 2021-08-25 15:07:19 -07:00
FourWire.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
FourWire.h run code formatting script 2021-03-15 19:27:36 +05:30
Group.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
Group.h run code formatting script 2021-03-15 19:27:36 +05:30
I2CDisplay.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
I2CDisplay.h run code formatting script 2021-03-15 19:27:36 +05:30
OnDiskBitmap.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
OnDiskBitmap.h OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
Palette.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
Palette.h add is_transparent getter to displayio.Palette 2021-03-16 20:43:23 -05:00
Shape.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
Shape.h run code formatting script 2021-03-15 19:27:36 +05:30
TileGrid.c Rename make_new's parameter to all_args 2021-10-15 13:49:33 -05:00
TileGrid.h run code formatting script 2021-03-15 19:27:36 +05:30