Dithering
Root / Submissions / [.]
12Me21Created:
Pretend that (for some reason) you want to send this image to SmileBASIC:
If you try to convert it directly to a format that works in SB, it ends up looking like this:
That's because SB only uses 16 bits to store colors instead of 32.
However, you can use dithering to make it look better:
http://12Me21.github.io/dither
This type of dithering works by calculating the difference between the 32 bit color and the 16 bit color, and spreading the error to surrounding pixels.
For example, if one pixel is made slightly darker when converting to 16 bit, the surrounding pixels (the ones that have not been converted yet) will be made slightly lighter.
16-bitify the gradient, then dither the gradient with the colors found on the 16-bitified one.
The dithering needs to be done before converting to 16 bit, since some information is lost when converting.
yeah
it's much better to do it with ze noise
This makes sense
Replying to:hakke
This uses the Floyd-Steinberg (that was it's name right?) algorithm or a cooler one like Bayer matrix?
it looks like floyd-steinberg to me, the patterns arent regular