You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These were values the values in the debugger - I've had other combos trigger this.
(lldb) po self
UIDeviceRGBColorSpace 0.411765 0.176471 0.894118 1
(lldb) po color
UIDeviceRGBColorSpace 0.0655637 0.077451 0.0641544 1
This is because the sqrt is being taken from is a very small negative number. Likely because of float/double precision issues?
In this case, i am setting deltaH to zero. Perhaps it would be more appropriate to take the sqrt of abs? Either way will result in a very small number later on when this result is used.
Thanks for you library!
For this line in distanceFromColor deltaH is NAN, which causes the result to be NAN.
These were values the values in the debugger - I've had other combos trigger this.
This is because the sqrt is being taken from is a very small negative number. Likely because of float/double precision issues?
In this case, i am setting deltaH to zero. Perhaps it would be more appropriate to take the sqrt of abs? Either way will result in a very small number later on when this result is used.
The text was updated successfully, but these errors were encountered: