Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Array color methods provide inconsistent results #1119

TriteLife opened this Issue · 2 comments

2 participants


The array methods .rgbToHsb() and .hsbToRgb() sometimes will not yield expected results.

Take this example:

// [19, 76, 29]

Ideally that would return the same value it started as.


Running through all possibilities of HSB will have around 1.4 million inconsistent results. I understand the limitations of converting these using only ints. I just feel that consistency would be the more expected result.

Although it's entirely possible I'm not fully thinking through the limitations to their full extent.


@TriteLife, I'm reviewing the issues queue preparing for the 1.5 release later this month.
This issue seems to have been fixed. Can you confirm that in this fiddle:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.