Open top-tumble opened 1 year ago
I just found myself wishing for this too.
The best way to deal with colours is check out the numpy examples and work with arrays in your desired colourspace so you've always got the colour information available.
I appreciate this is... weird (and a waste of RAM)... but setting a pixel in PicoGraphics is so fraught with complexity that there's no reasonable way we can - in all cases - return a sensible value with get_pixel
since all but the RGB888 colourspace is destructive.
What's the use case for get_pixel
? (I can think of a few myself, but it'd be interesting to know if we have some good reasons to justify figuring this out)
Absolute novice here but really enjoying playing around with my Pico W and Unicorn (7 x 16).
Would it be possible to implement a
get_pixel(x, y)
method that returned[r, g, b]
?