Skip to content

The width variable is inverted #8

@alager

Description

@alager

The description of width is inverted from what it is.
The implementation is currently that a smaller number, like 2 results in a longer tail. The value 8 gives the shortest tail of only 2 pixels.

A simple solution to this is:
uint8_t inv = 10 - width; // maps 2→8, 3→7, ..., 8→2
return (((color&0xFF0000)/inv)&0xFF0000) + (((color&0x00FF00)/inv)&0x00FF00) + (((color&0x0000FF)/inv)&0x0000FF);

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