update example turtle.js

This commit is contained in:
lee2sman 2021-02-14 02:42:19 -05:00
parent 482266f571
commit a248e84fc3
1 changed files with 5 additions and 3 deletions

View File

@ -1,11 +1,12 @@
function turtle(){
bg('blue')
penColor('pink')
penSize(12)
forward(randint())
back(200)
right(90)
penColor('blue')
for (let i = 0; i < 13; i++){
forward(170)
@ -16,6 +17,7 @@ function turtle(){
right(10)
back(18)
}
}