GMU:Actors, Traces, Collectives/SS17/Schachbrettmuster

From Medien Wiki
< GMU:Actors, Traces, Collectives‎ | SS17
Revision as of 21:29, 13 August 2017 by Max (talk | contribs) (Max moved page GMU:Actors, Traces, Collectives/Schachbrettmuster to GMU:Actors, Traces, Collectives/SS17/Schachbrettmuster: gleicher kurs im WS)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
int size = 50;

void setup(){
 size (600, 600);
}

void draw(){
  for (int h = 0; h < width; h += size) {
    for (int v = 0; v < height; v += size) {
      if ((h+v) % 20 == 0) {  
        fill(255); 
      }  
      else { 
        fill(0);
      } 
      rect (h, v, size, size);
    }
  }
}