File tree 1 file changed +7
-4
lines changed 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
//! https://arkada38.github.io/2018/01/14/creating-a-turtle/
2
2
//!
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 .
7
7
extern crate turtle;
8
8
9
9
use turtle:: { Turtle , Color , color} ;
@@ -60,6 +60,9 @@ fn main() {
60
60
61
61
turtle. left ( 175.0 ) ;
62
62
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.
63
66
64
67
draw_right_highlight ( & mut turtle) ;
65
68
You can’t perform that action at this time.
0 commit comments