Besides what I have below, this also is a good example of a function in action.
Author Archives: steve
Tell me what time it is
Aside
I call this “very expensive clock.”
println("hour: " + hour());
println("minutes: " + minute());
println("seconds: " + second());
Where is the mouse?
Are you guessing where to place objects in a sketch?
Let’s make it easier.
Let’s write some code.
void setup() {
size(400,400);
}
void draw() {
println("X: " + mouseX);
println("Y: " + mouseY);
}