Replies: 2 comments 2 replies
-
#1391 is useful background information, with some input from the fabulous @dnkl |
Beta Was this translation helpful? Give feedback.
-
the color quantization is highly dependent on implementation. you can encode to either 0..100 RGB or 0..100 HSL. currently, notcurses uses rgb exclusively, and first does a flat linear conversion of RGB 24bpp colors to RGB umm 19.92bpp, fuck sixel right in the ass. but i bet there are algorithms which do something different, making better use of the original precision.
no such function exists, except in the case of the very simplest color quantizers, because the colors are sensitive to the entire image, not just individual pixels. |
Beta Was this translation helpful? Give feedback.
-
Continuing the conversation from #1488 (reply in thread) in order to focus on sixel/pixel color control...
Whatever we can know, we should be able to know... I'd like to understand better the mechanics of the reduction of the color range. I guess it's not upper bounded, so it would happen too with 222222 and 232323, right? As I understand each 0-255 value gets transposed to 0-100?
It would be useful to have a function to convert an rgb color to what that color would be in a sixel representation...
Beta Was this translation helpful? Give feedback.
All reactions