vaidehijoshi / css-colors

A Rust converter for transforming CSS colors! 🎨
https://crates.io/crates/css-colors
ISC License
27 stars 9 forks source link

Add impl for converting rgb/rgba into hsl/hsla #6

Closed vaidehijoshi closed 6 years ago

vaidehijoshi commented 6 years ago

Adds implementation for converting RGB and RGBA colors into HSL and HSLA.

vaidehijoshi commented 6 years ago

i rebased a commit into this PR that splits up Angles into it's own module, so am changing the base branch to make diffs more obvious

vaidehijoshi commented 6 years ago

@chancancode i think this is ok to merge, and then i can refactor how i handle the saturation & luminosity once i have impl'd percentages. let me know if you disagree, though.