xxxxxxxxxx
48
function setup() {
createCanvas(windowWidth,windowHeight);
}
function draw() {
noLoop();
x1=0; y1=0;
x2=width; y2= 0;
x3=width; y3=random(height/3);
cx4=random(width/2,width); cy4=random(height/4); qx4=random(width/2,2*width/3); qy4=random(height/2);x4=random(width/3,2*width/3);y4=random(height/3);
cx5=random(width); cy5=0; qx5=random(height/3); qy5=random(height/3);
x5=0;y5=random(height/2);
/*x5=;y5=;
x6=;y6=;
x7=;y7=;*/
noStroke();
fill(0);
background(220);
beginShape();
vertex(x1, y1);
vertex(x2, y2);
vertex(x3, y3);
bezierVertex(cx4,cy4,qx4,qy4,x4, y4);
bezierVertex(cx5,cy5,qx5,qy5,x5, y5);
endShape(CLOSE);
}