Skip to content

Improve or replace the palette generation algorithm #86

@Rangi42

Description

@Rangi42

Given this input image:

image

(Or this equivalent one which I find easier to look at):

image

It could be done with just two palettes:

{ 001f, 03f0, 7fe0, 7c10, }
{ 02ff, 23e0, 7d00, 5c1f, }

But Tilemap Studio (and superfamiconv) do it in six:

84ff00 ffbd00 00ff42 ff0000
ffbd00 00ffff ff0000 0042ff
ffbd00 ff00bd ff0000 8400ff
84ff00 00ffff 00ff42 0042ff
84ff00 00ff42 ff00bd 8400ff
00ffff ff00bd 8400ff 0042ff

(Extending the input to one which could fit in 8 palettes but for which we fail to do so is left as an exercise for the reader.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions