Hello! On the topic of pixels, what would be the best way to access the current pixel state? We have super simple and direct
hsv() (and the niché
hsv24()) APIs for setting the pixel, but none for getting it just yet.
All of these write to the current pixel that will head out to LEDs when the render function completes. If the pixel’s value were accessible, we could do more fun things and blend colors, convert hsv to rgb, etc.
If at some point a backing buffer was supported, this would let you access that pixel’s previous value as well. That plus some blending modes and an alpha setting would go far, but I’m getting ahead of myself!
- A new super-global array:
array(3)with RGB values. Could be read/write.
- Shorthand getters:
- Array copy/filler:
getRgb(array)where you pass in an array to be set
- Like above but renamed:
getPixel(array)- still RGB