kopia lustrzana https://github.com/villares/sketch-a-day
Update sketch_191018a.pyde
rodzic
3413652e56
commit
b368444a0a
|
|
@ -7,7 +7,7 @@ def setup():
|
||||||
strokeJoin(ROUND)
|
strokeJoin(ROUND)
|
||||||
|
|
||||||
def draw():
|
def draw():
|
||||||
background(100)
|
background(200)
|
||||||
grid(width / 2, width / 2, 4, width)
|
grid(width / 2, width / 2, 4, width)
|
||||||
|
|
||||||
def grid(xo, yo, n, tw, e=None):
|
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):
|
def poly_arrow(x, y, s, i, j):
|
||||||
w = s / (1 + i) # x / s)
|
w = s / (1 + i) # x / s)
|
||||||
h = s / (1 + j ) # y / 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"""
|
""" Seta na posição x, y com largura w e altura h"""
|
||||||
mw = w
|
mw = w
|
||||||
mh = h
|
mh = h
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue