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:13] ffpaladin |
hong_kong_students_click_here [2015/07/23 10:27] ffpaladin |
||
---|---|---|---|
Line 230: | Line 230: | ||
http://processing.org/reference/ | http://processing.org/reference/ | ||
+ | |||
+ | Traffic Light | ||
<code> | <code> | ||
Line 253: | Line 255: | ||
ellipse(20,60,20,20); | ellipse(20,60,20,20); | ||
+ | } | ||
+ | |||
+ | </code> | ||
+ | |||
+ | Stick Man | ||
+ | |||
+ | <code> | ||
+ | |||
+ | int counter; | ||
+ | |||
+ | void setup() { //setup function called initially, only once | ||
+ | size(300,300); | ||
+ | } | ||
+ | |||
+ | void draw() { //draw function loops | ||
+ | ellipse(20,20,20,20); | ||
+ | line(20,30,20,80); | ||
+ | line(10,40,30,40); | ||
+ | line(20,80,10,90); | ||
+ | line(20,80,30,90); | ||
} | } | ||
</code> | </code> |