kopia lustrzana https://github.com/villares/sketch-a-day
Update sketch_2020_06_03a.pyde
rodzic
f9098cfd05
commit
4a5189f97a
|
@ -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)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue