Getting keyword color up and running

This commit is contained in:
Casey Reas
2012-09-04 03:43:15 +00:00
parent 18843b6f64
commit 954ef88c79
11 changed files with 63 additions and 27 deletions
+3 -2
View File
@@ -55,8 +55,9 @@ void draw() {
strokeWeight(2);
beginShape(POINTS);
for (int a = 0; a < 360; a+=6) {
float x = cx + cos(radians(a)) * secondsRadius;
float y = cy + sin(radians(a)) * secondsRadius;
float angle = radians(a);
float x = cx + cos(angle) * secondsRadius;
float y = cy + sin(angle) * secondsRadius;
vertex(x, y);
}
endShape();