User Tools

Site Tools


hong_kong_students_click_here

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
hong_kong_students_click_here [2015/07/23 10:00]
ffpaladin
hong_kong_students_click_here [2015/07/23 10:13]
ffpaladin
Line 230: Line 230:
  
 http://​processing.org/​reference/​ http://​processing.org/​reference/​
 +
 +<​code>​
 +
 +int counter;
 +
 +void setup() {  //setup function called initially, only once
 +  size(500, 500);
 +}
 +
 +void draw() {  //draw function loops 
 +
 +  fill(255,​255,​255);​
 +  rect(0,​0,​40,​80);​
 +  ​
 +  fill(255,​0,​0);​
 +  ellipse(20,​20,​20,​20);​
 +
 +  fill(0,​255,​0);​
 +  ellipse(20,​40,​20,​20);​
 +
 +  fill(0,​0,​255);​
 +  ellipse(20,​60,​20,​20);​
 +
 +}
 +
 +</​code>​
/soe/sherol/.html/teaching/data/pages/hong_kong_students_click_here.txt · Last modified: 2015/07/23 14:50 by ffpaladin