Moth Quilt
Created using Python Turtle
References
Script
######################################################################
##
## Created by Abby O'Malley
## website: aabrbty.com
## instagram: @aabrbty
##
######################################################################
import turtle
t = turtle.Turtle()
import mothtiles.moth_1 as m1
import mothtiles.moth_2 as m2
import mothtiles.moth_3 as m3
import mothtiles.moth_4 as m4
import mothtiles.moth_5 as m5
### Globals ###
rows = 5
columns = 5
og_size = 300
fin_size = 500
new_size = fin_size/rows
incr = new_size*1.73
scale = (new_size/og_size)*500
startX = -fin_size*.85
startY = fin_size*.85 - incr
t.speed(0)
t.up()
# Call Functions #
for row in range (rows):
for col in range (columns):
currMoth = (col+row)%5
if currMoth == 0:
m1.moth_1(t, startX+col*incr, startY-row*incr, scale)
elif currMoth == 1:
m2.moth_2(t, startX+col*incr, startY-row*incr, scale)
elif currMoth == 2:
m3.moth_3(t, startX+col*incr, startY-row*incr, scale)
elif currMoth == 3:
m4.moth_4(t, startX+col*incr, startY-row*incr, scale)
else: