Timothy Sherman – Schotter

by Timothy Sherman @ 12:36 am 12 January 2011

Processing.js:

Processing:

Processing Code:

 boolean toChange = true;
 void setup()
 {
   size(400, 760);
   smooth();
   noFill();
   background(248);
 }
 
 void mouseClicked()
 {
   toChange = true;
 }
 
 void draw()
 {
   if(toChange)
   {
     fill(248);
     rect(-1,-1,401,801);
     noFill();
     for(int j = 0;j<24;j++)
     {
       for(int i = 0;i<12;i++)
       {
         pushMatrix();
         translate(20+i*30+random(j*.3+i/30)-(j*.3+i/30)/2,20+j*30+random(j*.3+i/30)-(j*.3+i/30)/2);
         rotate(radians(random((6*j+i/2))-(6*j+i/2)/2));
         rect(0,0,30,30);
         popMatrix();
       }
     }
     toChange = false;
   }
 }

Cinder:

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