change turtle.js starter code

This commit is contained in:
lee2sman 2021-02-14 02:07:26 -05:00
parent 06c47c9e01
commit 4fb8e5cbbc
1 changed files with 17 additions and 16 deletions

View File

@ -1,21 +1,22 @@
function turtle(){
penColor('blue')
for (let i = 0; i < 100; i++){
penSize(randint())
right(randint());
forward(randint());
penColor(color(randint(),randint(),randint()))
bg('blue')
penColor('pink')
penSize(12)
forward(randint())
for (let i = 0; i < 13; i++){
forward(170)
left(120)
forward(180)
right(10)
back(18)
}
penColor(color(100,0,100,50));
penSize(20);
forward(100);
penColor(color(100,0,100,150));
forward(100);
penColor(color(100,0,100,250));
forward(100);
}