voxpelli / sass-color-helpers

A collection of Sass color helpers that enables easier, more fool-proof design implementations (+ some math helpers)
92 stars 9 forks source link

Add RGB(A)->HSV(A) conversion #7

Open strarsis opened 7 years ago

strarsis commented 7 years ago

It would be great if also conversion from RGB(A) to HSV(A) is added.

voxpelli commented 7 years ago

@strarsis Makes sense to support it, what do you think about the code I added in a PR?

voxpelli commented 7 years ago

@strarsis No feedback?

strarsis commented 7 years ago

Thanks for the PR, the different color system should result in different alpha mixing. (Originally I wondered how to generally convert RGB to HSV. - Apparently this was is possible by just passing a RGB value to ch-hsl-to-hsv(...).)