1
2 void setup() {
3 size( 500, 500 );
4 background( 333 );
5 }
6
7 void draw()
8 {
9 stroke( 255 );
10 if ( mousePressed == true ) {
11 line( mouseX, mouseY, pmouseX, pmouseY );
12 }
13 }
14