Examples updates to 640 x 360 pixels

This commit is contained in:
Casey Reas
2011-08-05 18:26:51 +00:00
parent f1c7aabf14
commit 9b7de8d6b7
52 changed files with 295 additions and 302 deletions
@@ -8,7 +8,7 @@
void setup()
{
size(200, 200);
size(640, 360);
noStroke();
smooth();
noLoop();
@@ -16,14 +16,14 @@ void setup()
void draw()
{
drawCircle(126, 170, 6);
drawCircle(width/2, 280, 6);
}
void drawCircle(int x, int radius, int level)
{
float tt = 126 * level/4.0;
fill(tt);
ellipse(x, 100, radius*2, radius*2);
ellipse(x, height/2, radius*2, radius*2);
if(level > 1) {
level = level - 1;
drawCircle(x - radius/2, radius/2, level);