PLOGO/turtle.js

19 lines
260 B
JavaScript
Raw Normal View History

2021-01-21 08:45:43 +00:00
function turtle(){
2021-01-21 09:14:14 +00:00
2021-01-21 09:45:01 +00:00
penSize(3);
penColor('purple');
2021-01-21 09:14:14 +00:00
right(randint(100));
forward(randint(200));
2021-01-21 09:22:38 +00:00
penup();
2021-01-21 09:14:14 +00:00
right(randint());
forward(randint());
2021-01-21 09:45:01 +00:00
penSize(12);
penColor('#00ff8f');
2021-01-21 09:22:38 +00:00
pendown();
2021-01-21 09:14:14 +00:00
right(randint(45));
forward(randint(300));
2021-01-21 08:45:43 +00:00
}