File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 66import displayio
77
88ironbow_palette = displayio .Palette (256 )
9+ """A palette often used to convert images to false color"""
910
1011# fmt: off
1112for i , pi in enumerate (
Original file line number Diff line number Diff line change 88 :members:
99.. automodule :: adafruit_pycamera.imageprocessing
1010 :members:
11+ .. automodule :: adafruit_pycamera.ironbow
12+ :members:
Original file line number Diff line number Diff line change 99import sys
1010
1111sys .path .insert (0 , os .path .abspath (".." ))
12+ sys .path .insert (0 , os .path .abspath ("mock" ))
1213
1314# -- General configuration ------------------------------------------------
1415
3435 "adafruit_lis3dh" ,
3536 "adafruit_ticks" ,
3637 "bitmaptools" ,
38+ "bitmapfilter" ,
3739 "busdisplay" ,
3840 "busio" ,
3941 "digitalio" ,
40- "displayio" ,
4142 "espcamera" ,
4243 "fourwire" ,
4344 "micropython" ,
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 Jeff Epler for Adafruit Industries
2+ #
3+ # SPDX-License-Identifier: Unlicense
4+
5+
6+ class Palette :
7+ def __init__ (self , i ):
8+ self ._data = [0 ] * i
9+
10+ def __setitem__ (self , idx , value ):
11+ self ._data [idx ] = value
You can’t perform that action at this time.
0 commit comments