Simple Animated Complexity

We were watching the mesmerizing animations and mechanations of John Cage’s Matrix 3 last week in our Computational Media class when I fell in love with the idea of simple repetitions to create motion.

Obviously this is not a new concept, but I’ve always been fascinated by simple shapes and how some incredibly talented individuals can create poetic complex structures through simple repetition. Take for example the intricately designed arabesque tiles found throughout Islamic architecture. Most of these structures are built upon a single vocabulary of specific shapes, but through subtle variations the structures gain a mystic quality.

With this in mind, I went about creating a simple experiment in simple animated complexity.

Source:

int offset = 0;
int count = 0;
int strk = 0;
void setup() {
size(400, 400);
background(255);
stroke(strk);
noFill();
frameRate(30);
}

void draw() {
translate(width/2, height/2);
//line(-100, 0, 100, 0);
//line(0, -100, 0, 100);
for ( int i=0; i<5; i++) { //println("rect " + i); rotate(radians(i*offset)); int xy = (i+50+offset)/10; rect(-((i+1)*xy), -((1+i)*xy), 2*(i+1)*xy, 2*(i+1)*xy); offset++; if (count == 100) { strk = abs(strk-255); stroke(strk); count = 0; } else { count++; } strk = int(abs(strk-(count*2.5))); stroke(random(255),random(255),random(255)); if (offset > 2000) {
offset = 0;
}
}
}

Author: Ali

Developer and dreamer. I like to solve problems and make things come to life.

Leave a Reply

Your email address will not be published. Required fields are marked *