sunjay / turtle

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

Documentation #2

Closed sunjay closed 7 years ago

sunjay commented 7 years ago

If this is your first time using Rust or using this library, visit the Guide on turtle.rs.

The Turtle struct documentation contains information about the various things you can do with the Turtle instances you create. The Color struct contains hundreds of constants that you can use as color values. As a convenience, you can use the color name listed with each constant in a string instead of the constant itself. See that module for more information about how to use different colors.

Event Handling

For advanced users, the Event struct documentation provides information about how you can create an event loop and draw things in response to certain events like the mouse moving, or even keystrokes.

The Turtle struct contains a few convenience methods so you can do some common event-related things without creating the entire event loop.