Skip to content
← p5.jsRandom Variations
import kleur from "@driangle/kleur";

function draw() {
  for (let i = 0; i < 50; i++) {
    const color = kleur.random({
      hue: "warm",
      saturation: [40, 80],
      lightness: [30, 70],
    });
    const [r, g, b] = color.toArray();
    fill(r, g, b);
    ellipse(
      random(width), random(height),
      20, 20
    );
  }
}