diff --git a/visuals/CircleIntersection.gif b/visuals/CircleIntersection.gif new file mode 100644 index 0000000..8ba883b Binary files /dev/null and b/visuals/CircleIntersection.gif differ diff --git a/visuals/CircleIntersection/CircleIntersection.pyde b/visuals/CircleIntersection/CircleIntersection.pyde index 3f5d867..6b52e02 100644 --- a/visuals/CircleIntersection/CircleIntersection.pyde +++ b/visuals/CircleIntersection/CircleIntersection.pyde @@ -15,12 +15,13 @@ def circleIntersectCircle(c1, c2): return c1.radius > d or c2.radius > d def setup(): - size(1000, 1000) + size(500, 500) global circles, upperRadius, s s = 0 upperRadius = 500 circles = [] - + noLoop() + def draw(): # background(204) global circles @@ -41,3 +42,6 @@ def draw(): # for circle in circles: # circle.render() + +def mouseClicked(): + loop() diff --git a/visuals/EquilateralTriangle.gif b/visuals/EquilateralTriangle.gif new file mode 100644 index 0000000..7427c2d Binary files /dev/null and b/visuals/EquilateralTriangle.gif differ diff --git a/visuals/Gradients.gif b/visuals/Gradients.gif new file mode 100644 index 0000000..1958c8e Binary files /dev/null and b/visuals/Gradients.gif differ diff --git a/visuals/Illusion.gif b/visuals/Illusion.gif new file mode 100644 index 0000000..5bb2ae0 Binary files /dev/null and b/visuals/Illusion.gif differ diff --git a/visuals/Illusion/Illusion.pyde b/visuals/Illusion/Illusion.pyde index 36ff388..b709cdd 100644 --- a/visuals/Illusion/Illusion.pyde +++ b/visuals/Illusion/Illusion.pyde @@ -2,7 +2,8 @@ def setup(): size(750, 750) frameRate(250) background(0) - + noLoop() + s = 0 multi = 12.0 def draw(): @@ -18,3 +19,6 @@ def draw(): fill(0, 0, 0, 0) triangle(-30*multi, 30*multi, 0, -30*multi, 30*multi, 30*multi); popMatrix(); + +def mouseClicked(): + loop() diff --git a/visuals/IllusionColors.gif b/visuals/IllusionColors.gif new file mode 100644 index 0000000..c250cd8 Binary files /dev/null and b/visuals/IllusionColors.gif differ diff --git a/visuals/IllusionColors/IllusionColors.pyde b/visuals/IllusionColors/IllusionColors.pyde index e29369b..dc6d1eb 100644 --- a/visuals/IllusionColors/IllusionColors.pyde +++ b/visuals/IllusionColors/IllusionColors.pyde @@ -2,7 +2,7 @@ import time def setup(): size(750, 750) - frameRate(60) + frameRate(15) background(0) s = 0 multi = 12.0 diff --git a/visuals/README.md b/visuals/README.md index 4af8bc4..2074c74 100644 --- a/visuals/README.md +++ b/visuals/README.md @@ -8,18 +8,43 @@ All my projects attempting to create vivid or interesting visuals using the Proc - **CircleIntersection** - Plots circles in places where others aren't, expoonentially becoming slower and slower with each successfully located spot. Somewhat buggy and needs tuning to become much faster using a better algorithm, and probably better methods for deciding where spots are (less random, more organized manner). +![CircleIntersection](./CircleIntersection.gif) + - **EquilateralTriangle** - Places squares in increasing size whilst rotating. +![EquilateralTriangle](./EquilateralTriangle.gif) + - **Gradients** - Builds simple linear RGB gradients from 1 random color to another. +![Gradients](./Gradients.gif) + - **Illusion** - A improperly named triangular rotation (I like the way they look) sketch. +![Illusion](./Illusion.gif) + - **IllusionColors** - A more proper mimic of the common illusion mechanic, but it doesn't work so well. +![IllusionColors](./IllusionColors.gif) + - **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. +![Trippy Boxes](./TrippyBoxes.gif) + + +- **Rotating_HSB_Squares** - Slowly builds a mandela-like structure out of squares that slowly change color through the HSB color spectrum. Does not contain all variants, just change the `top` variables divisor from `1` to `100,000` as well as the divisor of `rot` from something in `1.0 to 10.0`, which is just below it. + +![RotatingHSBSquares 1](./RotatingHSBSquares_1.gif) + +![RotatingHSBSquares 2](./RotatingHSBSquares_2.gif) + +![RotatingHSBSquares 3](./RotatingHSBSquares_3.gif) + +![RotatingHSBSquares 4](./RotatingHSBSquares_4.gif) - **StackingEquilateralTriangles** - Another interesting rotating triangle sketch. -- **Sierpinski_Triangle** - Builds the Sierpinski Triangle \ No newline at end of file +![Stacking Equilateral Triangles](./StackingEquilateralTriangles.gif) + +- **Sierpinski_Triangle** - Builds the Sierpinski Triangle + +![Sierpinski Triangle](./SierpinskiTriangle.gif) \ No newline at end of file diff --git a/visuals/RotatingHSBSquares_1.gif b/visuals/RotatingHSBSquares_1.gif new file mode 100644 index 0000000..674f201 Binary files /dev/null and b/visuals/RotatingHSBSquares_1.gif differ diff --git a/visuals/RotatingHSBSquares_2.gif b/visuals/RotatingHSBSquares_2.gif new file mode 100644 index 0000000..3c64fe4 Binary files /dev/null and b/visuals/RotatingHSBSquares_2.gif differ diff --git a/visuals/RotatingHSBSquares_3.gif b/visuals/RotatingHSBSquares_3.gif new file mode 100644 index 0000000..35d5d06 Binary files /dev/null and b/visuals/RotatingHSBSquares_3.gif differ diff --git a/visuals/RotatingHSBSquares_4.gif b/visuals/RotatingHSBSquares_4.gif new file mode 100644 index 0000000..183c6b9 Binary files /dev/null and b/visuals/RotatingHSBSquares_4.gif differ diff --git a/visuals/Rotating_HSB_Squares/Rotating_HSB_Squares.pyde b/visuals/Rotating_HSB_Squares/Rotating_HSB_Squares.pyde index 0a00a29..af5bd26 100644 --- a/visuals/Rotating_HSB_Squares/Rotating_HSB_Squares.pyde +++ b/visuals/Rotating_HSB_Squares/Rotating_HSB_Squares.pyde @@ -1,24 +1,27 @@ import random def setup(): - size(1440, 1440) + size(750, 750) frameRate(99999999) colorMode(HSB, 100) + noLoop() top = 0 def draw(): global top - top += 1 + top += 0.3 + (top / 10000) 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) + fill((rot / 10) % 100, 100, 100) pushMatrix() rotate(degrees(rot)) translate(rot / 10.0, 0) translate(rot, rot) rect(0, 0, 50, 50) popMatrix() - # noLoop() + +def mouseClicked(): + loop() diff --git a/visuals/SierpinskiTriangle.gif b/visuals/SierpinskiTriangle.gif new file mode 100644 index 0000000..f22adb7 Binary files /dev/null and b/visuals/SierpinskiTriangle.gif differ diff --git a/visuals/StackingEquilateralTriangles.gif b/visuals/StackingEquilateralTriangles.gif new file mode 100644 index 0000000..f5c5a85 Binary files /dev/null and b/visuals/StackingEquilateralTriangles.gif differ diff --git a/visuals/TrippyBoxes.gif b/visuals/TrippyBoxes.gif new file mode 100644 index 0000000..a754b1a Binary files /dev/null and b/visuals/TrippyBoxes.gif differ diff --git a/visuals/Trippy_Boxes/Trippy_Boxes.pyde b/visuals/Trippy_Boxes/Trippy_Boxes.pyde index 5526ef4..a8fc81a 100644 --- a/visuals/Trippy_Boxes/Trippy_Boxes.pyde +++ b/visuals/Trippy_Boxes/Trippy_Boxes.pyde @@ -4,7 +4,7 @@ class RGB: self.rgb = (r,g,b) def setup(): - size(1000, 1000, P3D) + size(750, 750, P3D) colorMode(HSB, 5, 5, 5) def drawMatrix(i):