Minor changes to examples, more code color tweaks for 2b8

This commit is contained in:
Casey Reas
2012-12-20 03:21:07 +00:00
parent cebf10855e
commit 234cbdd85f
13 changed files with 114 additions and 138 deletions
@@ -17,7 +17,7 @@ float velocityX, velocityY;
void setup(){
size(640, 360);
frameRate(30);
fill(128);
baseX1 = 0;
baseY1 = height-150;
@@ -32,8 +32,7 @@ void setup(){
directionY = random(0.1, 0.99);
// normalize direction vector
float directionVectLength = sqrt(directionX*directionX +
directionY*directionY);
float directionVectLength = sqrt(directionX*directionX + directionY*directionY);
directionX /= directionVectLength;
directionY /= directionVectLength;
}