Mark Shuster – Schotter

by mshuster @ 12:58 am 12 January 2011

Processing

void setup() {
  size(300, 600);
  smooth();
  noFill();
  background(255);
  rectMode(CENTER);
  noLoop();
}
 
void draw() {
  int x, y;
  int offset = 50;
  for (y = 0; y < 24; y++) {
    for (x = 0; x < 12; x++) {
      resetMatrix();
      translate(offset + x*20,offset + y*20);
      float r = random(-y, y);
      rotate((PI * 2) / 360 * r * 2);
      rect(r/2, r/2, 20, 20);
      resetMatrix();
    }
    translate(-x*20,0);
  }
}

Processing.js


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