Skip to content

Pre-multiply a colour before quantising it, not after #192

Description

@jcollie

fromClamped rounds each channel to a byte and then pre-multiplies, rounding twice and leaves every partially transparent fill uniformly a level off. Multiply in float and round once instead.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions