xxxxxxxxxx
void setup()
{
size(4800,4800);
background(255);
noFill();
}
float r = 0.02;
float x1 = 0;
float y1 = 0;
float cpx1 = 0;
float cpy1 = 0;
float cpx2 = 0;
float cpy2 = 0;
float x2 = 0;
float y2 = 0;
void draw()
{
for(int j=0;j<100;j=j+1)
{
x1=x1 + random(20,60);
y1=y1+random(10,50);
cpx1 = cpx1+random(-25,80);
cpy1 = cpy1+random(20,40);
cpx2 = cpx2+random(-10,40);
cpy2 = cpy2+random(30,90);
x2 = x2 + random(20,50);
y2 = y2 + random(10,60);
float rtr = random(0.6,1.2);
for(float i= 0;i<10; i = i + 01)
{
print(x1);
translate(2400,2400);
rotate(r);
bezier(x1,y1,cpx1,cpy1,cpx2,cpy2,x2,y2);
r = r + rtr;
resetMatrix();
}
}
noLoop();
}
void keyPressed()
{
saveFrame("Daffodil.tif");
}