mirror of
https://github.com/Xevion/processing-projects.git
synced 2025-12-06 01:15:57 -06:00
rotating HSB squares sketch
This commit is contained in:
@@ -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.
|
||||
24
visuals/Rotating_HSB_Squares/Rotating_HSB_Squares.pyde
Normal file
24
visuals/Rotating_HSB_Squares/Rotating_HSB_Squares.pyde
Normal 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()
|
||||
2
visuals/Rotating_HSB_Squares/sketch.properties
Normal file
2
visuals/Rotating_HSB_Squares/sketch.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
mode=Python
|
||||
mode.id=jycessing.mode.PythonMode
|
||||
Reference in New Issue
Block a user