1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
//! The API Documentation below will help you learn about the various things you can do with this //! library. //! //! **If this is your first time using Rust or using this library, read the Guide on //! [turtle.rs](http://turtle.rs) to learn how to start.** //! //! The [`Turtle` struct](struct.Turtle.html) documentation contains information about the various //! things you can do with the `Turtle` instances you create. The [`color` module](color/index.html) //! and its submodules contain 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](event/enum.Event.html) documentation provides information //! about how you can create an event loop. This allows you to draw things in response to //! certain events like the mouse moving, keys being pressed, and more. //! //! The `Turtle` struct contains a few convenience methods so you can do some common event-related //! things without creating the entire event loop. //! //! * Use [`wait_for_click()`](struct.Turtle.html#method.wait_for_click) to wait for the user to click //! anywhere on the screen before continuing extern crate piston_window; extern crate interpolation; extern crate rand; // Re-exported for the convenience of library users pub use rand::*; mod turtle_window; mod turtle; mod speed; mod radians; mod animation; mod extensions; mod renderer; mod state; pub mod color; pub mod event; pub use turtle::{Turtle, Point, Distance, Angle}; pub use speed::{Speed}; pub use color::{Color}; pub use event::Event;