CMY Rects

size(640,960);
colorMode(HSB,100);
background(0);
noFill();
rectMode(CENTER);

int range = 3;

color cy = color(53,100,100);
color ma = color(90,100,100);
color ye = color(18,100,100);

for(int y=0;y<48;y++){
  for(int x=0;x<32;x++){
    int fig = int(random(0,4));
    switch(fig){
    case 0 :
      fill(cy);
      break;
    case 1 :
      fill(ma);
      break;
    case 2 :
      fill(ye);
      break;
    }
    rect(10+x*20+random(-range,range),10+y*20+random(-range,range),10,10);
  }
}