From babba1fc5aae64290438689c828c74739e38681e Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 23 Oct 2019 13:45:43 -0500 Subject: [PATCH] Illusion sketch --- visuals/Illusion/Illusion.pyde | 20 ++++++++++++++++++++ visuals/Illusion/sketch.properties | 2 ++ visuals/README.md | 4 +++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 visuals/Illusion/Illusion.pyde create mode 100644 visuals/Illusion/sketch.properties diff --git a/visuals/Illusion/Illusion.pyde b/visuals/Illusion/Illusion.pyde new file mode 100644 index 0000000..36ff388 --- /dev/null +++ b/visuals/Illusion/Illusion.pyde @@ -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(); diff --git a/visuals/Illusion/sketch.properties b/visuals/Illusion/sketch.properties new file mode 100644 index 0000000..2456b0a --- /dev/null +++ b/visuals/Illusion/sketch.properties @@ -0,0 +1,2 @@ +mode=Python +mode.id=jycessing.mode.PythonMode diff --git a/visuals/README.md b/visuals/README.md index 2555e44..561b583 100644 --- a/visuals/README.md +++ b/visuals/README.md @@ -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. -- **Gradients** Builds simple linear RGB gradients from 1 random color to another. \ No newline at end of file +- **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