fractalkitty looking for math? fractalkitty.com

100 days of code

seeNoise

#noise#animation

n=20
noiseScale = 0.6;

function setup() {
  createCanvas(windowWidth, windowHeight);
  angleMode(DEGREES)
  noStroke();
}

function draw() {
  background(76, 132, 140);
  fill(0,0,0,60);
  stroke(255);
  strokeWeight(0.3)
  
  ellipse(width/2,height/2,width,height);
  ellipse(width/2,height/2,width/2,height);
  ellipse(width/2,height/2,width/2,height/2);
  ellipse(width/2,height/2,width/4,height/2);
  ellipse(width/2,height/2,width/4,height/4);
  ellipse(width/2,height/2,width/8,height/4);
  ellipse(width/2,height/2,width/8,height/8);
  t=frameCount/200;
  xn=t;
  yn=t
  noStroke()
  for(let i=0;i<=n;i++){
    xn+=noiseScale;
    for(let j=0;j<=n;j++){
      c=noise(xn,yn)*255;
      fill(color(255,c));
      ellipse(width/n*i,height/n*j,width/n,height/n)
     fill(0,0,0,10); ellipse(width/n*i,height/n*j,width/n/2,height/n)
      yn+=noiseScale;
    }
  }
}