diff --git a/visuals/README.md b/visuals/README.md index 561b583..2d90c29 100644 --- a/visuals/README.md +++ b/visuals/README.md @@ -12,4 +12,6 @@ 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. -- **Illusion** A improperly named triangular rotation (I like the way they look) sketch. \ No newline at end of file +- **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. \ No newline at end of file diff --git a/visuals/Trippy_Boxes/Trippy_Boxes.pyde b/visuals/Trippy_Boxes/Trippy_Boxes.pyde new file mode 100644 index 0000000..5526ef4 --- /dev/null +++ b/visuals/Trippy_Boxes/Trippy_Boxes.pyde @@ -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) + diff --git a/visuals/Trippy_Boxes/sketch.properties b/visuals/Trippy_Boxes/sketch.properties new file mode 100644 index 0000000..2456b0a --- /dev/null +++ b/visuals/Trippy_Boxes/sketch.properties @@ -0,0 +1,2 @@ +mode=Python +mode.id=jycessing.mode.PythonMode