xxxxxxxxxx
45
function setup() {
createCanvas(windowWidth,windowHeight);
}
function draw() {
noLoop();
x1=random(width/2); y1=height;
x2=width; y2= height;
x3=width; y3=random(0,height/2);
cx4=random(0,width/2); cy4=random(height/2); qx4=random(4*width/5,width); qy4=random(height/2,height);
/*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,x1, y1);
endShape(CLOSE);
}