Resources/misc/draw.pjs
author Mahlon E. Smith <mahlon@martini.nu>
Mon, 23 Sep 2013 09:10:55 -0700
changeset 1 b3419d05eabb
permissions -rw-r--r--
Checkpoint. * Got fonts working cross platform by only using SVG. This will change with the new webkit engine when Tide 1.4 is released. * Use the Tide API accessors for cross-window data. * Make the ThingFish server object an observable, so models and their URI bases can be changed easily. * Add options for saving window state and position. * Contextual menu updates/tests for later.


void setup() {
	size( 500, 500 );
	background( 333 );
}

void draw()
{
	stroke( 255 );
	if ( mousePressed == true ) {
		line( mouseX, mouseY, pmouseX, pmouseY );
	}
}