xxxxxxxxxx
41
let img1, img2;
let h = 1
let v = 0;
let s = 1;
function preload(){
img1 = loadImage("scenery 2.jpg");
img2 = loadImage("window 2.png")
}
function setup() {
createCanvas(600,500);
frameRate(15);
}
function draw() {
background(0);
image(img1,80,60,400,400,);
image(img2,-90,20,700,500);
for(let i=1; i<12; i++){
push();
noStroke();
fill(255,255,0);
circle(noise(h*i*0.5)*(width-20),
noise(v*i*0.5)*(height-20),
noise(s*i)*10);
fill(255,255,0,random(100));
circle(noise(h*i*0.5)*(width-20),
noise(v*i*0.5)*(height-20),
noise(s*i)*30);
pop();
}
h = h-0.005;
v = v+0.005;
s = s-0.005;
//noLoop();
}