- Typical processing sketch will look like
//setup method runs once
void setup() {
size(400, 400);
stroke(255);
}
//draw method runs multiple times
void draw() {
line(150, 25, mouseX, mouseY);
}
/*mousePressed and other
event based methods run on event */
void mousePressed() {
background(192, 64, 0);
}