Difference between revisions of "FSOSS 2010/processing.js/examples"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
==Simple Ellipse==
+
== Simple Ellipse ==
 
<pre>
 
<pre>
 
/*
 
/*
Line 10: Line 10:
  
  
==Ellipse==
+
== Ellipse ==
 
<pre>
 
<pre>
 
/*
 
/*

Revision as of 15:06, 15 September 2010

Simple Ellipse

/*
  Ellipse
*/
void draw() {
  ellipse(width/2, height/2, 80, 80);
}


Ellipse

/*
  Ellipse
*/
void setup() {
  size(400, 400);
}

void draw() {
  ellipse(mouseX, mouseY, 80, 80);
}