From 4a5189f97a70e018970e7cf8c91df1f52026e679 Mon Sep 17 00:00:00 2001 From: villares Date: Wed, 3 Jun 2020 23:09:37 -0300 Subject: [PATCH] Update sketch_2020_06_03a.pyde --- 2020/sketch_2020_06_03a/sketch_2020_06_03a.pyde | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/2020/sketch_2020_06_03a/sketch_2020_06_03a.pyde b/2020/sketch_2020_06_03a/sketch_2020_06_03a.pyde index ee2e0fd0..eb03abb8 100644 --- a/2020/sketch_2020_06_03a/sketch_2020_06_03a.pyde +++ b/2020/sketch_2020_06_03a/sketch_2020_06_03a.pyde @@ -3,9 +3,6 @@ via https://twitter.com/ntsutae/status/1267834176381702148?s=20 ntsutae metioned to be inspired by https://dwitter.net/d/18851 """ -halfWidth = None -halfHeight = None -tex = None rotx = PI / 4 roty = PI / 4 t = 0 @@ -15,10 +12,7 @@ def setup(): global halfWidth, halfHeight, tex halfWidth = width / 2.0 halfHeight = height / 2.0 - tex = loadImage("berlin-1.jpg") textureMode(NORMAL) - fill(255) - stroke(color(44, 48, 32)) def draw(): background(0) @@ -33,14 +27,12 @@ def draw(): G=createGraphics(g, g) G.beginDraw() G.clear() - G.stroke(0, 255, 0) + G.stroke(255) for x in range(g): for y in range(g): s = x - t - (((s + y) ^ (s - y)) ** 2 + t) % 8096 < 555 and G.point(x, y) - # (((s + y) ^ (s - y)) ** 2 + t) % 8096 < 555 and G.point(x, y) + (((s + y) | (s - y)) ** 2 + t) % 2048 < 128 and G.point(x, y) G.endDraw() - texturedCube(G)