Skip to content

Commit 0b06c53

Browse files
committed
Speeding up the curves of the R in the Rust logo
1 parent bda524a commit 0b06c53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/rust.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fn letter(turtle: &mut Turtle) {
144144
turtle.set_speed("instant");
145145
turtle.backward(0.4);
146146
turtle.right(0.3);
147-
turtle.set_speed(SPEED);
147+
turtle.set_speed(10);
148148
}
149149

150150
turtle.set_speed(SPEED);
@@ -167,14 +167,14 @@ fn letter(turtle: &mut Turtle) {
167167
turtle.set_speed("instant");
168168
turtle.backward(0.4);
169169
turtle.right(0.2);
170-
turtle.set_speed(SPEED);
170+
turtle.set_speed(10);
171171
}
172172

173173
for _ in 0..200 {
174174
turtle.forward(0.5);
175175
turtle.set_speed("instant");
176176
turtle.backward(0.4);
177177
turtle.left(0.1);
178-
turtle.set_speed(SPEED);
178+
turtle.set_speed(10);
179179
}
180180
}

0 commit comments

Comments
 (0)