fractalkitty looking for math? fractalkitty.com

Genuary 2022

VHS Stuck

#random#trig#image#animation#accumulates#genuary

cnty

let cnt = 100,dx = 1,dy=1;
let cnty = 0;
function preload() {
  bg = loadImage('/assets/IMG_1068.jpeg');
}
function setup() {
  cnv = createCanvas(bg.width/7, bg.height/7);//canvas creation
  noStroke();  
  cnty=height;
  background(bg);
}
function draw() {
  translate(1*sin(frameCount/10)*sin(frameCount/10),0)
  for(i=0;i<height;i=i+dx){    
    let x = cnty;
    let y = i;
    pix = bg.get(bg.width/(width/x),bg.height/(height/y));
    fill(pix[0]+random(-50,50),pix[1]+random(-50,50),pix[2]+random(-50,50),200);
    x = cnty+100;
    y = i; 
    tmpx = random(0,50);
    tmpy = random(3,500);
    rect(x,y,tmpx,tmpy);
    tmpx = random(10,20);
    tmpy = random(300,500);
    x = cnty-100;
    y = i; fill(pix[0]+random(-50,50)+100,pix[1]+random(-50,50),pix[2]+100+random(-50,50),200);
    rect(x,y,tmpx,tmpy);
    tmpx = random(10,20);
    tmpy = random(300,500);
    
    
    rect(x-200,y,tmpx,tmpy);
    fill(pix[0]+random(-50,50),pix[1]+random(-50,50)-100,pix[2]+random(-50,50),200);
    rect(x+100,y,tmpx,tmpy);
    tmpx = random(90,100);
    tmpy = random(300,500);
    rect(x,y,tmpx,tmpy);
  }
  cnty = (cnty+dy)%width;
  
  
}