circuitpython/shared-module/displayio
Jeff Epler 9df8f235b1 OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes
Before, when an OnDiskBitmap was a paletted bitmap type, the palette
was internal to the OnDiskBitmap, and it internally performed the palette
conversion itself.  When using with a tilegrid, a ColorConverter() object
always had to be passed.

Now, an OnDiskBitmap has a "pixel_shader" property.  If the bitmap is
a paletted bitmap type, it is a (modifiable) Palette object.  Otherwise,
it is a ColorConverter() object as before. This allows palette effects
to be applied to paletted OnDiskBitmaps.

Code that used to say:
```python
face = displayio.TileGrid(odb, pixel_shader=displayio.ColorConverter())
```
must be updated to say:
```python
face = displayio.TileGrid(odb, pixel_shader=odb.pixel_shader)
```

Compatible code for 6.x and 7.x can say
```python
face = displayio.TileGrid(odb, pixel_shader=getattr(odb, 'pixel_shader', ColorConverter())
```
2021-05-28 10:53:21 -05:00
..
__init__.c move to displayio_area_union and away from _expand 2021-03-25 11:21:39 -05:00
__init__.h run code formatting script 2021-03-15 19:27:36 +05:30
area.h move to displayio_area_union and away from _expand 2021-03-25 11:21:39 -05:00
Bitmap.c displayio.Bitmap: Allow modification though the buffer protocol 2021-04-03 10:41:20 -05:00
Bitmap.h displayio_bitmap_set_dirty_area: rewrite in terms of displayio_area 2021-03-18 09:20:56 -05:00
ColorConverter.c Merge MicroPython 1.14 into CircuitPython 2021-05-11 15:07:40 -07:00
ColorConverter.h OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
display_core.c Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
display_core.h run code formatting script 2021-03-15 19:27:36 +05:30
Display.c Fix PWMOut non-error handling and never reset 2021-03-19 09:57:21 -04:00
Display.h run code formatting script 2021-03-15 19:27:36 +05:30
EPaperDisplay.c Simplify the status LED to save power 2021-05-13 14:41:20 -07:00
EPaperDisplay.h Simplify the status LED to save power 2021-05-13 14:41:20 -07:00
FourWire.c run code formatting script 2021-03-15 19:27:36 +05:30
FourWire.h run code formatting script 2021-03-15 19:27:36 +05:30
Group.c Fix board builds and use MP_ERROR_TEXT in py and extmod 2021-05-05 17:51:52 -07:00
Group.h run code formatting script 2021-03-15 19:27:36 +05:30
I2CDisplay.c run code formatting script 2021-03-15 19:27:36 +05:30
I2CDisplay.h run code formatting script 2021-03-15 19:27:36 +05:30
mipi_constants.h Minor tweaks based on feedback 2018-09-06 14:49:49 -07:00
OnDiskBitmap.c OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
OnDiskBitmap.h OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
Palette.c add is_transparent getter to displayio.Palette 2021-03-16 20:43:23 -05:00
Palette.h OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
Shape.c run code formatting script 2021-03-15 19:27:36 +05:30
Shape.h run code formatting script 2021-03-15 19:27:36 +05:30
TileGrid.c Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
TileGrid.h run code formatting script 2021-03-15 19:27:36 +05:30