sunjay / turtle

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

Export color constants as associated constants on Color #186

Closed noeddl closed 3 years ago

noeddl commented 3 years ago

Fixes #171.

Some notes:

noeddl commented 3 years ago

The extra #[doc = $name] is important because it tells the user what to use when referring to the color in a string literal. For example, the color CHERRY_RED needs to be referred to as "cherry red" when calling set_pen_color. I'm planning to rework things so this is more clear.

I see, that makes sense.

Thanks for merging!