Ejemplo n.º 1
0
from turtle import *
from draw_a_square import draw_square

coord_list = [(-100, -100, 100), (100, 100, 200), (-100, 100, 120),
              (100, -100, 250)]

for coord in coord_list:
    up()
    home()
    x, y, size = coord
    setheading(270)
    forward(x)
    setheading(0)
    forward(y)
    down()
    draw_square(size)

mainloop()
Ejemplo n.º 2
0
from turtle import *
from draw_a_square import draw_square

coord_list = [(-100, 100), (100, 100), (-100, -100), (100, -100)]

for coord in coord_list:
    up()
    home()
    x, y = coord
    setheading(270)
    forward(x)
    setheading(0)
    forward(y)
    down()
    draw_square()

mainloop()