Skip to content

Negative indexes for extended colors always acts as color 0 (black/transparent) #247

@AmalgamatedGooze

Description

@AmalgamatedGooze

It is well-documented that the extended colors can be accessed by adding 128 to the original color's value--FAKE08 works as expected when accessing the extended colors like this. However, the extended colors can also be accessed by subtracting 16 from the original color, or subtracting 144 from the extended color's value. (-16=128, -15=129, -14=130, and so on)

From my experience, defining an extended color with its negative index works in the original PICO8 environment, but does not work when running in the FAKE08 environment (or, in my case specifically, when running on the Miyoo Mini). I have confirmed that accessing the extended colors works as expected when adding 128 to the original color, but not when subtracting 16 from the original color--it instead always returns black (color 0).

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