//Justin Faria "Data Culture Assignment 1" //10/22/07 // This is a modified version of the // I've placed what was origionally intended to be my sprite //image as the background. The second image is overlaid over //the first with an elipse array. Unfortunately I'm not sur where //I found the elipse array. I know it was on the Processing //website however when I went back to search I couldn't remember //what program it was taken from. PImage bg, tt; int a; float xpos; float ypos; float drag = 30.0; float max_distance; float offset; void setup() { size(400,400); xpos = width/2; ypos = height/2; frameRate(60); smooth(); noStroke(); max_distance = dist(0, 0, width, height); bg = loadImage("Sprite-Beta.gif"); tt = loadImage("Sprite-Alpha.gif"); } void draw() { background(bg); for(int i = 0; i <= width; i += 20) { for(int j = 0; j <= width; j += 20) { float size = dist(mouseX, mouseY, i, j); size = size/max_distance * 74; ellipse(i, j, size, size); } } { image (tt, 0, 0); tint (100,100); } }