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 Color Operations #10

Closed vaidehijoshi closed 5 years ago

vaidehijoshi commented 6 years ago

Adds functions for Less' color operations, and also adds docs and examples for each operation:

vaidehijoshi commented 5 years ago

TODO:

vaidehijoshi commented 5 years ago

@chancancode I think this ready is for review!

I couldn't see an obvious way to split up the operations tests into a macro, since it seemed like I would be duplicating what's already happening inside of assert_approximately_eq!. I split up the tests and added more, however.