Update sketch_2020_06_04a.pyde

main
villares 2020-06-05 10:35:49 -03:00
rodzic f23ce00cc5
commit ab556e7128
1 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -2,21 +2,20 @@
# https://twitter.com/ntsutae/status/1268432505356513280?s=20
t = 0
w = 400
a, b, c = 2, 1023, 512
a, b, c = 2, 1024, 256
def setup():
size(w, w)
strokeWeight(1.5)
size(400, 400)
noSmooth()
def draw():
global t
t += 1
# scale(2)
background(-1)
for y in range(400):
for x in range(400):
background(255)
for y in range(width):
for x in range(width):
(t + abs((x + y - t) ^ (x - y + t)
) ** a) % b < c and point(x, y)
def keyPressed():
global a, b, c
print(a, b, c)