From ab556e7128b56015cb8e063dba9e78d6bb21458b Mon Sep 17 00:00:00 2001 From: villares Date: Fri, 5 Jun 2020 10:35:49 -0300 Subject: [PATCH] Update sketch_2020_06_04a.pyde --- 2020/sketch_2020_06_04a/sketch_2020_06_04a.pyde | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/2020/sketch_2020_06_04a/sketch_2020_06_04a.pyde b/2020/sketch_2020_06_04a/sketch_2020_06_04a.pyde index 97f5cf0d..9966986b 100644 --- a/2020/sketch_2020_06_04a/sketch_2020_06_04a.pyde +++ b/2020/sketch_2020_06_04a/sketch_2020_06_04a.pyde @@ -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)