@mvaganov/

eperiod2019_shapes

Python (with Turtle)

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.19262015315813663","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHR1cnRsZQp0dXJ0bGUuY29sb3IoIiNmZjg4ODgiKQp0dXJ0bGUuZ290bygwLDEwMCkKdHVydGxlLmdvdG8oMTAwLDEwMCkKdHVydGxlLmdvdG8oMTAwLDApCnR1cnRsZS5nb3RvKDAsMCkKCnR1cnRsZS5jb2xvcigiIzg4YWFmZiIpCnR1cnRsZS5maWxsY29sb3IoIiM4OGFhZmY0NCIpCnR1cnRsZS5iZWdpbl9maWxsKCkKY291bnRlciA9IDAKd2hpbGUgY291bnRlciA8IDM6CiAgICB0dXJ0bGUuZm9yd2FyZCgxMjApCiAgICAjIGV4dGVyaW9yQW5nbGUgPSAzNjAgLyBzaWRlcwogICAgdHVydGxlLmxlZnQoMzYwLjAvMykKICAgIGNvdW50ZXIgPSBjb3VudGVyICsgMQp0dXJ0bGUuZW5kX2ZpbGwoKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import turtle
turtle.color("#ff8888")
turtle.goto(0,100)
turtle.goto(100,100)
turtle.goto(100,0)
turtle.goto(0,0)

turtle.color("#88aaff")
turtle.fillcolor("#88aaff44")
turtle.begin_fill()
counter = 0
while counter < 3:
    turtle.forward(120)
    # exteriorAngle = 360 / sides
    turtle.left(360.0/3)
    counter = counter + 1
turtle.end_fill()
result
console