Turtle graphics with arrow keys

by bfdifan2013snap
See Code Download Embed
Controls:

Moving: 
Up arrow key - move 10 steps up (repeat 10)
Left arrow key - move 10 steps left (repeat 10)
Down arrow key - move 10 steps down (repeat 10)
Right arrow key - move 10 steps right (repeat 10)

W key - move 10 steps up (repeat 7)
A key - move 10 steps left (repeat 7)
S key - move 10 steps down (repeat 7)
D key - move 10 steps right (repeat 7)
Q key - move 10 steps (repeat 10)
E key - move 10 steps (repeat 7)

G key - turn right 5 degrees
H key - turn right 15 degrees
J key - turn right 30 degrees
K key - turn right 45 degrees
L key - turn right 90 degrees

Click green flag - Clear all pen trails, go to x 0 y 0, then pen down

Pen:
Z key - stamp turtle
X key - pen up
Shift & X key - pen up and clear
C key - pen down

1 key - change pen brightness by 25
2 key - change pen brightness by -25
3 key - change pen hue by 25
4 key - change pen hue by -25
5 key - change pen saturation by 25
6 key - change pen saturation by -25
7 key - change pen transparency by 25
8 key - change pen transparency by -25
9 key - change pen size by 1
0 key - change pen size by -1

Y key - set pen brightness to 0
U key - set pen hue to 0
I key - set pen saturation to 0
O key - set pen transparency to 0
P key - set pen size to 1

Created March 20, 2022

Last updated March 21, 2022

Published March 20, 2022