
// Based on the Collage Engine code on page 150


PImage nyt01 = loadImage("nyt_01.jpg");
PImage nyt02 = loadImage("nyt_02.jpg");
PImage nyt03 = loadImage("nyt_03.jpg");
PImage nyt04 = loadImage("nyt_04.jpg");
PImage nyt05 = loadImage("nyt_05.jpg");
PImage nyt06 = loadImage("nyt_06.jpg");
PImage nyt07 = loadImage("nyt_07.jpg");
PImage nyt08 = loadImage("nyt_08.jpg");
PImage nyt09 = loadImage("nyt_09.jpg");
PImage nyt10 = loadImage("nyt_10.jpg");
PImage nyt11 = loadImage("nyt_11.jpg");
PImage nyt12 = loadImage("nyt_12.jpg");
PImage nyt13 = loadImage("nyt_13.jpg");
PImage nyt14 = loadImage("nyt_14.jpg");
PImage nyt15 = loadImage("nyt_15.jpg");
PImage nyt16 = loadImage("nyt_16.jpg");
PImage nyt17 = loadImage("nyt_17.jpg");
PImage nyt18 = loadImage("nyt_18.jpg");
PImage nyt19 = loadImage("nyt_19.jpg");
PImage nyt20 = loadImage("nyt_20.jpg");
PImage nyt21 = loadImage("nyt_21.jpg");
PImage nyt22 = loadImage("nyt_22.jpg");
PImage nyt23 = loadImage("nyt_23.jpg");
PImage nyt24 = loadImage("nyt_24.jpg");
PImage nyt25 = loadImage("nyt_25.jpg");
PImage nyt26 = loadImage("nyt_26.jpg");
PImage nyt27 = loadImage("nyt_27.jpg");
PImage nyt28 = loadImage("nyt_28.jpg");
PImage nyt29 = loadImage("nyt_29.jpg");

float x, y, r; 

size(750, 2275);
smooth();
background(255);
tint(255, 204);

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt01, -nyt01.width/2, -nyt01.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt02, -nyt02.width/2, -nyt02.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt03, -nyt03.width/2, -nyt03.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt04, -nyt04.width/2, -nyt04.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt05, -nyt05.width/2, -nyt05.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt06, -nyt06.width/2, -nyt06.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt07, -nyt07.width/2, -nyt07.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt08, -nyt08.width/2, -nyt08.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt09, -nyt09.width/2, -nyt09.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt10, -nyt10.width/2, -nyt10.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt11, -nyt11.width/2, -nyt11.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt12, -nyt12.width/2, -nyt12.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt13, -nyt13.width/2, -nyt13.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt14, -nyt14.width/2, -nyt14.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt15, -nyt15.width/2, -nyt15.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt16, -nyt16.width/2, -nyt16.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt17, -nyt17.width/2, -nyt17.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt18, -nyt18.width/2, -nyt18.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt19, -nyt19.width/2, -nyt19.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt20, -nyt20.width/2, -nyt20.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt21, -nyt21.width/2, -nyt21.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt22, -nyt22.width/2, -nyt22.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt23, -nyt23.width/2, -nyt23.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt24, -nyt24.width/2, -nyt24.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt25, -nyt25.width/2, -nyt25.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt26, -nyt26.width/2, -nyt26.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt27, -nyt27.width/2, -nyt27.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt28, -nyt28.width/2, -nyt28.height/2);
popMatrix();

x = random(width);
y = random(height);
r = random(0, TWO_PI);
pushMatrix();
translate(x, y);
rotate(r);
image(nyt29, -nyt29.width/2, -nyt29.height/2);
popMatrix();


//saveFrame("page-148--" + int(random(0, 1000)) + ".tif");
