javl / image2cpp

GNU General Public License v3.0
529 stars 156 forks source link

monochrome optional? #52

Open spaceWafflesss opened 2 years ago

spaceWafflesss commented 2 years ago

Hi, I was wondering if it was possible to make monochrome optional, if not could someone point out where in the html code that is, and how to disable it, thanks

javl commented 1 year ago

You mean you want to be able to use this for color images? I'm not sure how that would work, as the OLEDs this script was made for just turn the pixels on/off and don't use any color info, and I don't have any color OLEDs to try this with.

LeoGeneret commented 1 year ago

it could be interesting for the transparency issue. we could have 255 for pixel that are white, 0 for skipped pixel (transparent) and 128 for pure black

javl commented 1 year ago

Not sure what "the transparency issue" is. OLED pixels are either on or off (at least on black and white OLEDs). If you use a display without backpanel, off would already mean transparent. So how would you use the 3rd state?