size( w, h ); point( x, y ); line( x1, y1, x2, y2 ); rect( x1, x2, w, h ); ellipse( x1, x2, w, h ); background( g ); stroke( r, g, b ); fill( gray ); fill( red, green, blue ); stroke( g ): stroke( r, g, b ); strokeWidth( w ): // Note Capital "W" noStroke(); // Note Capital "S" text( "Hello", x, y ); rectMode( ____ ); ellipseMode( ____ ); // Modes are: CORNER, CORNERS, CENTER, RADIUS //
EXAMPLES size( 600, 400 ); background( 200, 200, 255 ); // Light blue // text( "EXAMPLES", 100, 10 ); point( 10,10 ); line( 20,20, 30,30 ); fill( 255, 0, 0 ); // Red // stroke( 0,255, 0); rect( 50,50, 60, 40 ); fill( 0, 255, 0 ); // Red // noStroke(); rect( 150,150, 100, 75 );