Skip to content

Slightly off color values for the 6x6x6 cube #13

@egmontkob

Description

@egmontkob

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions