[processing width=”480″ height=”120″ file=”http://www.ashleyelsdon.com/wp-content/uploads/2012/03/spot_follows_mouse_movement.jar” method=”inline”]Load the applet[/processing]
All this applet does is follow the mouse around with a tiny spot. That’s all, but it’s day 2 of my look at processing and tracking the mouse. Here’s the code for it.
void setup() {
size(480, 120);
fill(0, 102);
smooth();
noStroke();
}
void draw() {
background(204);
ellipse(mouseX, mouseY, 9, 9);
}