kopia lustrzana https://github.com/villares/sketch-a-day
Create s256.pyde
rodzic
8e9c320bc2
commit
3f61f3b5ee
|
@ -0,0 +1,21 @@
|
|||
|
||||
|
||||
def setup():
|
||||
size(400, 400)
|
||||
colorMode(HSB)
|
||||
|
||||
def draw():
|
||||
background(200)
|
||||
#rect(0, 0, width, height)
|
||||
r = 125 # radius
|
||||
x1, y1 = 150, 200
|
||||
x2, y2 = 250, 200
|
||||
for i in range(64):
|
||||
stroke(i * 4, 200, 200)
|
||||
a1 = i * TWO_PI / 64 + frameCount/30.
|
||||
sx1 = x1 + cos(a1) * r #* cos(frameCount/20.)
|
||||
sy1 = y1 + sin(a1) * r #* cos(frameCount/20.)
|
||||
a2 = i * TWO_PI / 64 - frameCount/30.
|
||||
sx2 = x2 + cos(a2) * r #* sin(frameCount/20.)
|
||||
sy2 = y2 + sin(a2) * r #* sin(frameCount/20.)
|
||||
line(sx1, sy1, sx2, sy2)
|
Ładowanie…
Reference in New Issue