sunjay / turtle

Create Animated Drawings in Rust
http://turtle.rs
Mozilla Public License 2.0
562 stars 53 forks source link

Add More Color Functions #59

Closed sunjay closed 6 years ago

sunjay commented 6 years ago

The Color struct could use some more methods to make different color operations possible. We can use the utilities provided by SASS for CSS colors as inspiration.

In particular, it would be nice to add the following methods to Color:

Note that although these are functions in SASS, they should be added as methods on Color.

Not all of these functions need to be added at once. Feel free to only add a few of them at a time.

You can base the implementation on SASS or any other library with color functions. Please add some tests and a helpful documentation comment (with examples) to each added method. If you're not sure how this should look, see the documentation for the other color methods.

stevepentland commented 6 years ago

I'm going to move into the remaining methods soon and get Color complete

sunjay commented 6 years ago

Awesome! Sounds great! Please send them just a few at a time (or even one at a time) so I can review them faster and get them through. :)

sunjay commented 6 years ago

Thanks @stevepentland for your amazing work getting every single one of these implemented. Your work has made it so that all of these great features are available for the 1.0 release! :tada: :smile: :tada: