This shows you the differences between two versions of the page.
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> |