Mercurial > hg > weather-synthesis-prototyping
comparison June/processingD1/processingD1.pde @ 49:819d71fa7fac
Processing sketch added
author | Rod Selfridge <r.selfridge@qmul.ac.uk> |
---|---|
date | Fri, 05 Jun 2015 18:02:02 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
48:4b14b2a355e9 | 49:819d71fa7fac |
---|---|
1 // Example 05-02 from "Getting Started with Processing" | |
2 // by Reas & Fry. O'Reilly / Make 2010 | |
3 | |
4 int position; | |
5 | |
6 void setup() { | |
7 size(1420, 900); | |
8 background(128); | |
9 position = 0; | |
10 } | |
11 | |
12 void draw() { | |
13 background(128); | |
14 fill(0); // fill changes the color of the interior of the shape | |
15 noStroke(); // noStroke removes the outer line | |
16 | |
17 // Does position represent the horizontal or the vertical location? | |
18 ellipse(80.5, 100.5, 30, 30); | |
19 ellipse(1080.5, 150.5, 30, 30); | |
20 ellipse(620.5, 650.5, 30, 30); | |
21 | |
22 } | |
23 |