Skip to content

Bad documentation on color palettes #11927

Description

@NathanSalapat

Problem

I'm using param2 = 'color' and param2 = 'colorfacedir' for blocks and stairs/slab combos. Per the api,

If the palette has less than 256 pixels, then it is stretched to contain exactly 256 pixels (after arranging the pixels to one line). The indexing starts from 0.

I read this as stretching and blurring the pixels, not as stretching and keeping the same pixels and duplicating them.

Solutions

The api should say whether the pixels are scaled with or without interpolation.

Alternatives

If the scaling should have interpolation consider this a bug report I guess. 0.o

Additional context

Numbers up top are the param2 values. In a 1x8 palette there is no difference between 110 and 96, but when I scale the palette up in GIMP it works as I would expect it too.
param2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    @ DocumentationImprovements or additions to documentationLow priorityRequest / SuggestionThe issue makes a suggestion for something that should be done but isn't a new featuregood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions