From f21cf15c384756ae462fdffded79c4bda8afcc28 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Mon, 10 Sep 2018 22:00:21 -0700 Subject: Add OnDiskBitmap which loads pixel data straight from disk. Also, renamed Sprite's palette to pixel_shader so it can be anything that produces colors based on values (including color values). Added a ColorConverter that converts RGB888 (found in bitmaps) to RGB565 for the display. Fixes #1182 --- shared-module/displayio/Sprite.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shared-module/displayio/Sprite.h') diff --git a/shared-module/displayio/Sprite.h b/shared-module/displayio/Sprite.h index 213130af8..dc368c4b7 100644 --- a/shared-module/displayio/Sprite.h +++ b/shared-module/displayio/Sprite.h @@ -31,12 +31,11 @@ #include #include "py/obj.h" -#include "shared-bindings/displayio/Palette.h" typedef struct { mp_obj_base_t base; mp_obj_t bitmap; - displayio_palette_t* palette; + mp_obj_t pixel_shader; uint16_t x; uint16_t y; uint16_t width; -- cgit v1.2.3