I intend to make arrays of curves that line up like this.
So far my code can only draw straight lines like this or relatively regular curves
I wonder how to use curve functions to create an array of curves that doesn’t cross over yet has slight variation so they don’t look identical, and how to adjust the size of the object.
My current code below:
let t=5;
function setup() {
createCanvas(600, 600);
}
function draw() {
background(255);
translate(0,50);
noFill();
for (let i=0;i<100;i++){
translate(t, 0.1);
bezier(0,258,50,199,50,209,100,186);
bezier(0,258,50,300,50,269,100,306);
push ();
rotate (radians(30));
line (0,0,random(50,90),0);
rotate (radians(-60));
line (0,0,random(50,90),0);
pop();
}
noLoop();
}
Thanks!