Update sketch_191018a.pyde

main
Alexandre B A Villares 2019-10-18 23:57:18 -03:00
rodzic 3413652e56
commit b368444a0a
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -7,7 +7,7 @@ def setup():
strokeJoin(ROUND)
def draw():
background(100)
background(200)
grid(width / 2, width / 2, 4, width)
def grid(xo, yo, n, tw, e=None):
@ -30,6 +30,7 @@ def grid(xo, yo, n, tw, e=None):
def poly_arrow(x, y, s, i, j):
w = s / (1 + i) # x / s)
h = s / (1 + j ) # y / s)
fill(i * 64, j * 64, 128)
""" Seta na posição x, y com largura w e altura h"""
mw = w
mh = h