LeWei-Schotter

by Le Wei @ 1:30 am 12 January 2011

Processing

Processing.js

Processing code

background(255);
smooth();
size(420, 724);
fill(0, 0);
 
float entropy = 0;
for (int i = 0; i < 20; i++) {
  for (int j = 0; j < 12; j++) {
    int x = 25 + 30*j + int(random(entropy*-1, entropy));
    int y = 15 + 30*i + int(random(entropy*-1, entropy));
    int angle = 0 + int(random(entropy*-1, entropy));
 
    pushMatrix();
    translate(x,y);
    rotate(radians(angle));
    rect(0,0,30,30);
    popMatrix();
    entropy += 0.08;
  }
 
}

openFrameworks

Gives you a new version each time it runs.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2023 Interactive Art & Computational Design / Spring 2011 | powered by WordPress with Barecity