Skip to content

Commit f7d53f5

Browse files
arkada38sunjay
authored andcommitted
Update draw_turtle.rs
1 parent 4f030b7 commit f7d53f5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

examples/draw_turtle.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! https://arkada38.github.io/2018/01/14/creating-a-turtle/
22
//!
3-
//! Inspired by child's drawing of turtle we are going to draw and paint figures
4-
//! which consists of arcs and straight lines.
5-
//! To draw arcs we need to use the loops which are determine tilt angle and the length.
6-
//! The more sophisticated the figure is the more loops it requires to make.
3+
//! This is inspired by a child's drawing of a turtle.
4+
//! We are going to draw the turtle using arcs and straight lines.
5+
//! To draw arcs, we use multiple Rust for-loops to create different tilt angles and
6+
//! lengths. The more sophisticated the figure is, the more loops we need to make it.
77
extern crate turtle;
88

99
use turtle::{Turtle, Color, color};
@@ -60,6 +60,9 @@ fn main() {
6060

6161
turtle.left(175.0);
6262
turtle.forward(SIZE * 43.0);
63+
64+
// Here we start to draw highlights on the shell.
65+
// We have 3 highlights: on the right, in the middle and on the left.
6366

6467
draw_right_highlight(&mut turtle);
6568

0 commit comments

Comments
 (0)