-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Extended 256-colors (6x6x6 cube + 16 grayscale, on top of the legacy 16 palette colors) have the same default RGB values in all graphical terminals I'm aware of.
These values are listed as color16 .. color255 in src/js/mc-const.js, and the list (at first glimpse) seems correct to me.
Note that the 0..5 values of the r, g, b, components are not evenly stretched out to the 0..255 range.
In src/js/mc-utils.js parseMcColor(), for entries of the grayscale ramp the code correctly refers to the desired colorNNN map. However, for rgb000 .. rgb555 values it doesn't. It converts them directly to RGB, by evenly stretching out the values.
Therefore the colors are slightly different than in terminals, and slightly different than if the skin used the corresponding supposedly identical color16 .. color239 aliases.