gka / chroma.js

JavaScript library for all kinds of color manipulations
https://gka.github.io/chroma.js/
Other
10.08k stars 543 forks source link

Update rgb2hcg.js #251

Closed RichardRobertson closed 1 year ago

RichardRobertson commented 3 years ago

Reduce RGB from 0-255 to 0.0-1.0 before calculating which fixes range issues. Change generating C and G from 0-100 to 0.0-1.0. Justification: /test/hcg2rgb.test.js uses C and G as 0.0-1.0.

Closes #250