13 Nisan 2009 Pazartesi

deneme

int idx=0;
void setup()
{
size(400,400);
background(120,35,125);
noFill();
smooth();
}
void draw()
{
line(40,200,80,250);
stroke(255);
strokeWeight(5);
line(110,110,40,200);
line(110,110,200,150);
line(200,150,300,80);
line(300,80,350,180);
line(350,180,320,250);
if(keyPressed)
{
if(idx%3==0)
{
bezier(80, 250, 40, 200, 110, 110, 200, 150);
}
else if(idx%3==1)
{
bezier(200, 150, 300, 80, 350, 180, 320, 250);
}
else if(idx%3==2)
{
bezier(80, 250, 200, 380, 200, 380, 320, 250);
}
idx++;
}
}

1 yorum:

  1. good work,

    i like the interactive part, to count the number of keystrokes.

    please post a screenshot as well next time, to make it easier to see the progress.

    YanıtlaSil