User Tools

Site Tools


more_cm_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
more_cm_examples [2007/09/10 17:11]
scarl
more_cm_examples [2007/09/13 06:40] (current)
scarl
Line 1: Line 1:
 +===More Examples===
 +
 These examples of using Continuous mode, with both continuous drawing and one-time drawing (via ''​noLoop''​),​ come from the [[http://​processing.org/​reference/​environment/​index.html|Processing website]]. These examples of using Continuous mode, with both continuous drawing and one-time drawing (via ''​noLoop''​),​ come from the [[http://​processing.org/​reference/​environment/​index.html|Processing website]].
  
Line 5: Line 7:
   void setup() {   void setup() {
     size(200,​200);​     size(200,​200);​
-    noStroke(); ​ // look this one up+    noStroke();
     background(255);​     background(255);​
     fill(0, 102, 153, 204);     fill(0, 102, 153, 204);
-    smooth();+    smooth(); ​              // look this one up
     noLoop();     noLoop();
   }   }
 +  ​
   void draw() {   void draw() {
     circles(40, 80);     circles(40, 80);
     circles(90, 70);     circles(90, 70);
   }   }
 +  ​
   void circles(int x, int y) {   void circles(int x, int y) {
     ellipse(x, y, 50, 50);     ellipse(x, y, 50, 50);
Line 30: Line 32:
     fill(0, 102, 153, 204);     fill(0, 102, 153, 204);
   }   }
 +  ​
   void draw() {   void draw() {
     background(255);​     background(255);​
more_cm_examples.txt ยท Last modified: 2007/09/13 06:40 by scarl