rotating HSB squares sketch

This commit is contained in:
Xevion
2019-10-25 14:14:55 -05:00
parent 400c59148e
commit 824492c8d1
3 changed files with 29 additions and 1 deletions

View File

@@ -15,3 +15,5 @@ All my projects attempting to create vivid or interesting visuals using the Proc
- **Illusion** A improperly named triangular rotation (I like the way they look) sketch.
- **Trippy_Boxes** - Transparent rotating boxes that move throught the HSB color spectrum.
- **Rotating_HSB_Squares** - Slowly builds a mandela-like structure out of squares that slowly change color through the HSB color spectrum.

View File

@@ -0,0 +1,24 @@
import random
def setup():
size(1440, 1440)
frameRate(99999999)
colorMode(HSB, 100)
top = 0
def draw():
global top
top += 1
translate(width/2, height/2)
# background(100)
strokeWeight(0.1)
# for rot in range(1, top):
rot = top
rot = rot/10.0
fill((rot / 9.0) % 100, 100, 100)
pushMatrix()
rotate(degrees(rot))
translate(rot / 10.0, 0)
translate(rot, rot)
rect(0, 0, 50, 50)
popMatrix()
# noLoop()

View File

@@ -0,0 +1,2 @@
mode=Python
mode.id=jycessing.mode.PythonMode