visuals section - all gifs and updated READMEs - mega commit
BIN
visuals/CircleIntersection.gif
Normal file
|
After Width: | Height: | Size: 183 KiB |
@@ -15,11 +15,12 @@ def circleIntersectCircle(c1, c2):
|
|||||||
return c1.radius > d or c2.radius > d
|
return c1.radius > d or c2.radius > d
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
size(1000, 1000)
|
size(500, 500)
|
||||||
global circles, upperRadius, s
|
global circles, upperRadius, s
|
||||||
s = 0
|
s = 0
|
||||||
upperRadius = 500
|
upperRadius = 500
|
||||||
circles = []
|
circles = []
|
||||||
|
noLoop()
|
||||||
|
|
||||||
def draw():
|
def draw():
|
||||||
# background(204)
|
# background(204)
|
||||||
@@ -41,3 +42,6 @@ def draw():
|
|||||||
|
|
||||||
# for circle in circles:
|
# for circle in circles:
|
||||||
# circle.render()
|
# circle.render()
|
||||||
|
|
||||||
|
def mouseClicked():
|
||||||
|
loop()
|
||||||
|
|||||||
BIN
visuals/EquilateralTriangle.gif
Normal file
|
After Width: | Height: | Size: 11 MiB |
BIN
visuals/Gradients.gif
Normal file
|
After Width: | Height: | Size: 12 MiB |
BIN
visuals/Illusion.gif
Normal file
|
After Width: | Height: | Size: 893 KiB |
@@ -2,6 +2,7 @@ def setup():
|
|||||||
size(750, 750)
|
size(750, 750)
|
||||||
frameRate(250)
|
frameRate(250)
|
||||||
background(0)
|
background(0)
|
||||||
|
noLoop()
|
||||||
|
|
||||||
s = 0
|
s = 0
|
||||||
multi = 12.0
|
multi = 12.0
|
||||||
@@ -18,3 +19,6 @@ def draw():
|
|||||||
fill(0, 0, 0, 0)
|
fill(0, 0, 0, 0)
|
||||||
triangle(-30*multi, 30*multi, 0, -30*multi, 30*multi, 30*multi);
|
triangle(-30*multi, 30*multi, 0, -30*multi, 30*multi, 30*multi);
|
||||||
popMatrix();
|
popMatrix();
|
||||||
|
|
||||||
|
def mouseClicked():
|
||||||
|
loop()
|
||||||
|
|||||||
BIN
visuals/IllusionColors.gif
Normal file
|
After Width: | Height: | Size: 42 MiB |
@@ -2,7 +2,7 @@ import time
|
|||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
size(750, 750)
|
size(750, 750)
|
||||||
frameRate(60)
|
frameRate(15)
|
||||||
background(0)
|
background(0)
|
||||||
s = 0
|
s = 0
|
||||||
multi = 12.0
|
multi = 12.0
|
||||||
|
|||||||
@@ -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** - 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).
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **EquilateralTriangle** - Places squares in increasing size whilst rotating.
|
- **EquilateralTriangle** - Places squares in increasing size whilst rotating.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **IllusionColors** - A more proper mimic of the common illusion mechanic, but it doesn't work so well.
|
- **IllusionColors** - A more proper mimic of the common illusion mechanic, but it doesn't work so well.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Trippy_Boxes** - Transparent rotating boxes that move throught the HSB color spectrum.
|
- **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.
|

|
||||||
|
|
||||||
|
|
||||||
|
- **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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **StackingEquilateralTriangles** - Another interesting rotating triangle sketch.
|
- **StackingEquilateralTriangles** - Another interesting rotating triangle sketch.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Sierpinski_Triangle** - Builds the Sierpinski Triangle
|
- **Sierpinski_Triangle** - Builds the Sierpinski Triangle
|
||||||
|
|
||||||
|

|
||||||
BIN
visuals/RotatingHSBSquares_1.gif
Normal file
|
After Width: | Height: | Size: 678 KiB |
BIN
visuals/RotatingHSBSquares_2.gif
Normal file
|
After Width: | Height: | Size: 6.4 MiB |
BIN
visuals/RotatingHSBSquares_3.gif
Normal file
|
After Width: | Height: | Size: 8.7 MiB |
BIN
visuals/RotatingHSBSquares_4.gif
Normal file
|
After Width: | Height: | Size: 6.4 MiB |
@@ -1,24 +1,27 @@
|
|||||||
import random
|
import random
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
size(1440, 1440)
|
size(750, 750)
|
||||||
frameRate(99999999)
|
frameRate(99999999)
|
||||||
colorMode(HSB, 100)
|
colorMode(HSB, 100)
|
||||||
|
noLoop()
|
||||||
top = 0
|
top = 0
|
||||||
def draw():
|
def draw():
|
||||||
global top
|
global top
|
||||||
top += 1
|
top += 0.3 + (top / 10000)
|
||||||
translate(width/2, height/2)
|
translate(width/2, height/2)
|
||||||
# background(100)
|
# background(100)
|
||||||
strokeWeight(0.1)
|
strokeWeight(0.1)
|
||||||
# for rot in range(1, top):
|
# for rot in range(1, top):
|
||||||
rot = top
|
rot = top
|
||||||
rot = rot/10.0
|
rot = rot/10.0
|
||||||
fill((rot / 9.0) % 100, 100, 100)
|
fill((rot / 10) % 100, 100, 100)
|
||||||
pushMatrix()
|
pushMatrix()
|
||||||
rotate(degrees(rot))
|
rotate(degrees(rot))
|
||||||
translate(rot / 10.0, 0)
|
translate(rot / 10.0, 0)
|
||||||
translate(rot, rot)
|
translate(rot, rot)
|
||||||
rect(0, 0, 50, 50)
|
rect(0, 0, 50, 50)
|
||||||
popMatrix()
|
popMatrix()
|
||||||
# noLoop()
|
|
||||||
|
def mouseClicked():
|
||||||
|
loop()
|
||||||
|
|||||||
BIN
visuals/SierpinskiTriangle.gif
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
BIN
visuals/StackingEquilateralTriangles.gif
Normal file
|
After Width: | Height: | Size: 7.1 MiB |
BIN
visuals/TrippyBoxes.gif
Normal file
|
After Width: | Height: | Size: 50 MiB |
@@ -4,7 +4,7 @@ class RGB:
|
|||||||
self.rgb = (r,g,b)
|
self.rgb = (r,g,b)
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
size(1000, 1000, P3D)
|
size(750, 750, P3D)
|
||||||
colorMode(HSB, 5, 5, 5)
|
colorMode(HSB, 5, 5, 5)
|
||||||
|
|
||||||
def drawMatrix(i):
|
def drawMatrix(i):
|
||||||
|
|||||||