Python (with Turtle)

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.9054856366178061","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHR1cnRsZQoKZnJlZCA9IHR1cnRsZS5UdXJ0bGUoKQpmcmVkLnNwZWVkKDApCgpmb3IgaiBpbiByYW5nZSgxODApOgogIGZvciBpIGluIHJhbmdlKDQpOgogICAgciA9IDI1NQogICAgZyA9IDEwMAogICAgYiA9IDUwCiAgICBmcmVkLmNvbG9yKHIsZyxiKQogICAgZnJlZC5mb3J3YXJkKDE1MCkKICAgIGZyZWQucmlnaHQoOTApCgogIGZyZWQucmlnaHQoMikKCg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import turtle

fred = turtle.Turtle()
fred.speed(0)

for j in range(180):
  for i in range(4):
    r = 255
    g = 100
    b = 50
    fred.color(r,g,b)
    fred.forward(150)
    fred.right(90)

  fred.right(2)

result
console