sašo-k
9/18/2017 - 10:02 AM

face 3

face 3

PImage portret;
PImage portret2;
PImage portret3;
PImage portret4; 
PImage portret5; 

void setup() {
  size(876, 770);
  frameRate(999);
  portret = loadImage("pic1.png");
  portret2 = loadImage("pic2.png");
  portret3 = loadImage("pic3.png");
  portret4 = loadImage("pic4.png");
  portret5 = loadImage("pic5.png");
     
  background(0);
}

void draw() { 
  int r = (int) 1;
  for (int i = 0; i < 50; i++) {
    float x = random(width);
    float y = random(height);
    color c = portret5.get(int(x), int(y));
    noStroke();
    fill(c);
    ellipse(x, y,r, r);
    x = random(width);
    y = random(height);
    c = portret3.get(int(x), int(y));
    noStroke();
    fill(c);
    ellipse(x, y,r, r);
    x = random(width);
    y = random(height);
    c = portret4.get(int(x), int(y));
    noStroke();
    fill(c);
    ellipse(x, y,r, r);
    x = random(width);
    y = random(height);
    c = portret.get(int(x), int(y));
    noStroke();
    fill(c);
    ellipse(x, y,r, r);
    x = random(width);
    y = random(height);
    c = portret2.get(int(x), int(y));
    noStroke();
    fill(c);
    ellipse(x, y,r, r);
    x = random(width);
    y = random(height);

  }
}