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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     1
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     2
void setup() {
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     3
	size( 500, 500 );
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     4
	background( 333 );
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     5
}
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     6
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     7
void draw()
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     8
{
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     9
	stroke( 255 );
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    10
	if ( mousePressed == true ) {
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    11
		line( mouseX, mouseY, pmouseX, pmouseY );
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    12
	}
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    13
}
b3419d05eabb Checkpoint.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    14