xxxxxxxxxx
function setup() {
createCanvas(800, 800);
colorMode(HSB,360,100,100,100);
background(343, 12, 23);
let a = 100;
let b = 400;
let c = lerp(a, b, 0.2);
let d = lerp(a, b, 0.6);
let e = lerp(a, b, 0.8);
let y = 50;
translate(-10,height*0.5);
strokeWeight(15);
stroke(random(360),80,100); // Draw the original points in black
point(a, y);
point(b, y);
stroke(random(360),40,100); // Draw the lerp points in gray
point(c, y);
point(d, y);
point(e, y);
}
function draw() {
noStroke();
fill(random(360),30,100);
translate(30,50);
textStyle(BOLD);
textSize(36);
text("I'm starting to get confused.", 10, 90);
}