var x1, x2, x3, x4, y1, y2, y3, y4, beezin, randBlend, hu, sc, sw, steps, splits, circleSize, wd, hd;
background(255, 235, 230);
array = [1,2,4,8,16,32,64]
wd = array[int(random(0,array.length))];
hd = array[int(random(0,array.length))];
steps = int(random(5,20));
splits = int(random(5,20));
if(int(random(0,2))==1){ beezin="true"; } else { beezin="false";}
var blends = [BLEND,EXCLUSION,DIFFERENCE];
randBlend = blends[Math.floor(Math.random() * blends.length)];
moreBez(x1,y1,x2,y2,x3,y3,x4,y4,hu,sc,sw,steps,beezin);
x2=x2+width/(splits/2); x4=x4+width/(splits/2);
y1=y1+width/(splits/2); y2=y2+width/(splits/2);
console.log("Blend: " + randBlend);
console.log("Steps: " + steps);
console.log("Lines: " + splits);
console.log("Beezin: " + beezin);
console.log("Height Divider: " + hd);
console.log("Width Divider: " + wd);
function moreBez (x1,y1,x2,y2,x3,y3,x4,y4,hu,sc,sw,steps,beezin) {
if(beezin=="true"){ bezier(x1,y1,x2,y2,x3,y3,x4,y4); }
for (let i = 0; i <= steps; i++) {
circleSize = int(random(5,25));
let x = bezierPoint(x1, x2, x3, x4, t);
let y = bezierPoint(y1, y2, y3, y4, t);
circle(x, y, circleSize);