Susan Lin – Schotter
Processing.js
Processing
Processing Code
After a few iterations, the working code ends up being 18 lines and optimized (to the best of my ability).
void setup() { size(384, 674); //12x21 grid background(255); noFill(); stroke(0); float variability=0; //important to use float over int! for(int j=0; j<672 ; j=j+32) { for(int i=0; i<384; i=i+32) { pushMatrix(); translate(i+random(-variability, variability), j+random(-variability, variability)); rotate(radians(random(-variability, variability))); rect(0, 0, 32, 32); variability+=0.083; //increases per square, this number is 1/12 popMatrix(); } } } |
openFrameworks
Comments Off on Susan Lin – Schotter