moving getting started to the books subfolder

This commit is contained in:
benfry
2011-01-26 19:27:48 +00:00
parent eb64b2d4fc
commit a187b61523
145 changed files with 0 additions and 0 deletions
@@ -0,0 +1,22 @@
// Example 07-04 from "Getting Started with Processing"
// by Reas & Fry. O'Reilly / Make 2010
int radius = 40;
float x = -radius;
float speed = 0.5;
void setup() {
size(240, 120);
smooth();
ellipseMode(RADIUS);
}
void draw() {
background(0);
x += speed; // Increase the value of x
if (x > width+radius) { // If the shape is off screen
x = -radius; // move to the left edge
}
arc(x, 60, radius, radius, 0.52, 5.76);
}