import processing.opengl.*; import kaleidoscope.*; Camera cam; float horizontalSpacing = 150; float verticalSpacing = 230; int numVertical = 150; int numHorizontal = 50; float diameter = 200; PImage lookImage; void setup() { size( 400, 400, OPENGL ); cam = new AppCamera( this ); lookImage = loadImage( "big-brother-poster.jpg" ); loadImages(); } void draw() { background( 184, 186, 198 ); cam.renderAll(); } void loadImages() { for( int x = 0; x < numHorizontal; x++) { for( int y = 0; y < numVertical; y++) { GImage tempGImage = new GImage( cam, lookImage ); tempGImage.setPosition( x*horizontalSpacing, y*verticalSpacing, 0.0 ); tempGImage.setDiameter( diameter ); cam.addGImage( tempGImage ); } } }