trippy boxes sketch

This commit is contained in:
Xevion
2019-10-23 14:02:16 -05:00
parent babba1fc5a
commit 400c59148e
3 changed files with 36 additions and 1 deletions

View File

@@ -13,3 +13,5 @@ All my projects attempting to create vivid or interesting visuals using the Proc
- **Gradients** Builds simple linear RGB gradients from 1 random color to another. - **Gradients** Builds simple linear RGB gradients from 1 random color to another.
- **Illusion** A improperly named triangular rotation (I like the way they look) sketch. - **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.

View File

@@ -0,0 +1,31 @@
class RGB:
def __init__(self, r, g, b):
self.r, self.g, self.b = r, g, b
self.rgb = (r,g,b)
def setup():
size(1000, 1000, P3D)
colorMode(HSB, 5, 5, 5)
def drawMatrix(i):
multi = 200
for x in range(5):
for y in range(5):
for z in range(5):
pushMatrix()
translate(200, 200)
translate(x * multi, y * multi, z * multi)
rotateX(i)
rotateY(i)
stroke(i % 5, 5, 5, 240)
fill(i % 5, 5, 5, 255/8)
strokeWeight(3)
box(100)
popMatrix()
i = 0
def draw():
global i
i += 0.02
background(5)
drawMatrix(i)

View File

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