Skip to content

ConsistentColors: Upgdare HsLuv to v1 and fix negative RGB values#703

Open
stokito wants to merge 6 commits intoigniterealtime:masterfrom
stokito:hsluv_v1
Open

ConsistentColors: Upgdare HsLuv to v1 and fix negative RGB values#703
stokito wants to merge 6 commits intoigniterealtime:masterfrom
stokito:hsluv_v1

Conversation

@stokito
Copy link
Member

@stokito stokito commented Mar 10, 2026

The ConsistentColor.RGBFrom("juliet") call returns RGB values array with negative red close to zero. Then when calling new java.awt.Color(float, float, float) it will throw an exception on the bad range IllegalArgumentException: Color parameter outside of expected range: Red.

I reported the problem to the hsluv hsluv/hsluv-java#2 but meanwhile here is a fix.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant