Skip to content

Gold-rimmed veil

A scruntched-up, meandering gold line, makes gray shadows towards the center of the screen

function setup() {
  createCanvas(400, 400);
  background(220);
}

let f = 0
function draw() {
  for (let i = 0; i < 70; i ++) {
    let t_ = (f - 1)/260
    let t = f/260
    f++
    noStroke()
    fill(0, 10)
    triangle(
      noise(t_+2, 10)*400, noise(t_, 100)*400,
      noise(t+2, 10)*400, noise(t, 100)*400,
      200, 200
    )
    stroke("gold")
    line(
      noise(t_+2, 10)*400, noise(t_, 100)*400,
      noise(t+2, 10)*400, noise(t, 100)*400
    )
  }
  
}

(Originally seen at https://editor.p5js.org/bojidar-bg/sketches/J8Azr9pn8)

Experiments tagged p5 (66/85)

Experiments on this site (66/85)