Closed Adolio closed 5 years ago
Awesome! Thanks a lot, Aurélien!
I forgot to add the color component extraction methods. Now everything should be fine.
Thanks again for sharing the code, Aurélien! I just added those methods to the Color class.
Beware, though, that I changed how hue
is used: I put it into the range 0-1 instead of 0-360. For one, that's what I used in the existing method; and two, that range is easily converted to radian or degrees (simply by multiplying with 360
or 2 * Math.PI
). :wink:
Following 0744d51 I propose to integrate several color conversion algorithms into the Starling codebase. Below are few utility methods part of my
ColorUtil
class.I hope this would be helpful for you guys đŸ™‚
And here are my tests: