Skip to content

Circle wave

A wave formed by the mis-aligned waverings of concentric circles

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

function draw() {
  background(220);
  noFill()
  let t = millis() / 400
  for (let i = 2; i < 600; i += 4) {
    circle(200 + sin(t - i * 0.05) * 10, 200 + cos(t * (600-i) / 200) * 10, i)
  }
}

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

Experiments tagged p5 (50/85)

Experiments on this site (50/85)