mirror of
https://github.com/Xevion/processing-projects.git
synced 2025-12-06 01:15:57 -06:00
Illusion sketch
This commit is contained in:
20
visuals/Illusion/Illusion.pyde
Normal file
20
visuals/Illusion/Illusion.pyde
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
def setup():
|
||||||
|
size(750, 750)
|
||||||
|
frameRate(250)
|
||||||
|
background(0)
|
||||||
|
|
||||||
|
s = 0
|
||||||
|
multi = 12.0
|
||||||
|
def draw():
|
||||||
|
global s, multi
|
||||||
|
s += 1
|
||||||
|
if multi <= 0.3:
|
||||||
|
noLoop()
|
||||||
|
multi -= 0.3
|
||||||
|
pushMatrix();
|
||||||
|
translate(width/2,height/2);
|
||||||
|
rotate(s*radians(0.3));
|
||||||
|
stroke(255)
|
||||||
|
fill(0, 0, 0, 0)
|
||||||
|
triangle(-30*multi, 30*multi, 0, -30*multi, 30*multi, 30*multi);
|
||||||
|
popMatrix();
|
||||||
2
visuals/Illusion/sketch.properties
Normal file
2
visuals/Illusion/sketch.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
mode=Python
|
||||||
|
mode.id=jycessing.mode.PythonMode
|
||||||
@@ -10,4 +10,6 @@ All my projects attempting to create vivid or interesting visuals using the Proc
|
|||||||
|
|
||||||
- **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.
|
||||||
Reference in New Issue
Block a user