Resources/misc/draw.pjs
changeset 1 b3419d05eabb
equal deleted inserted replaced
0:80c32ef237c6 1:b3419d05eabb
       
     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