xxxxxxxxxx
49
function setup() {
createCanvas(400, 400);
}
function draw() {
noLoop();
x1=random(width/4); y1=random(height/8);
cx2=random(width/4,width/2); cy2=random(height/16,0); x2=random(width/4,width/2); y2=random(height/10);
x3=random(width/4,width/2); y3=random(height/6,height/2);
cx4=random(width/2,width/2); cy4=random(height/4,height/2); x4=random(width/6,width/4); y4=random(height/4,height/2);
cx5=random(0,width/4); cy5=random(height/4,height/2); x5=x1; y5=y1;
/*x5=;y5=;
x6=;y6=;
x7=;y7=;*/
noStroke();
fill(0);
background(220);
beginShape();
vertex(x1, y1);
quadraticVertex(cx2,cy2,x2, y2);
vertex(x3, y3);
quadraticVertex(cx4,cy4,x4, y4);
quadraticVertex(cx5,cy5,x5, y5);
endShape(CLOSE);
drawingContext.shadowBlur = 10;
drawingContext.shadowColor='white';
}