Skip to content

Harmonies plugin issue #123

Open
Open
@jfagan1

Description

I think there is an issue with the harmonies plugin for specific input values. For example if I start with certain hex values sometimes the result returned is slightly off. For example:

const color = colord("#03FF84");
color.harmonies("complementary").map((c) => c.toHex()); // ["#03FF85, "#FF037D"]

You can see that the original color changes from #03FF84 to #03FF85. This problem happens on all harmonies for this color: tetradic, analogous etc. I took a quick look at the source code and I suspect some kind of rounding might be occurring. Does anyone know a way around this?

Activity

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

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