//Justin Faria "Data Culture Assignment 3" //10/28/07 // This was my exploratory program. Since I still don't know //enough about the syntax of processing 1.0 its mostly a cut //and paste program. Its a combination of the mouse functions, //Mouse 2D, and a storing input as the cursor. The goal here //was just to play in the program to find its limits. So I //picked out my three favorite programs and messed around trying //to get them to work together. // I hope to eventually put a set of key controls that will //allow me to freeze the program and move individual parts of //the image in a similar fashion to the ellipse. The greatest //diffculty I can see is to make the objects both freeze and be //operable by the cousor witout loosing the Mouse 2D control. float bx; float by; int bs = 20; boolean bover = false; boolean locked =false; float bdifx =0.0; float bdify = 0.0; int num = 60; float mx[] = new float[num]; float my[] = new float[num]; void setup() { size(400, 400); bx = width/2.0; by = height/2.0; ellipseMode (CENTER_RADIUS); smooth(); fill(255,255); colorMode (RGB, 255, 255, 255, 100); rectMode (CENTER); } void draw () { background (42); // the Mouse 2D effect fill(255, 80); rect(mouseX, height/2, mouseY/2+10, mouseY/2+10); fill(255, 80); rect(width-mouseX, height/2, ((height-mouseY)/2)+10, ((height-mouseY)/2)+10); // begining of the moveable elipse program if (mouseX > bx-bs && mouseX by-bs && mouseY