function setup() {
createCanvas(600, 600);
}
function draw() {
aNotionofTime = abs(sin(frameCount / 500));
aNotionofUnTime = abs(cos(frameCount / 500));
aMagnitudeofColor = random(240 - 200 * aNotionofTime);
for (let i = 0; i < 500; i++) {
verticalExistence = random(0, height);
bandsOfContrast =(verticalExistence * abs(sin(verticalExistence / 100))) / 3;
strokeWeight(random(0.5, 5));
stroke(50 + aMagnitudeofColor - bandsOfContrast + 30 * aNotionofTime,50 + aMagnitudeofColor - bandsOfContrast - 30 * aNotionofTime,50 + aMagnitudeofColor * 2 - bandsOfContrast - 30 * aNotionofTime,10);
line(randomGaussian(0, width),verticalExistence,randomGaussian(0, width),verticalExistence);
}
for (let i = 0; i < 5; i++) {
push();
translate(0, (-width / 2) * aNotionofUnTime);
rock();
pop();
}
}
function rock() {
fill(50 + 205 * aNotionofUnTime,50 + 205 * aNotionofUnTime,50 + 205 * aNotionofUnTime,2);
noStroke();
let ephemeris = createVector(random(width / 2 - 20, width / 2),random(height / 2 - 20, height / 2 + 20));
let aVolumeofSelf = randomGaussian(10, 200);
circle(ephemeris.x, ephemeris.y, aVolumeofSelf);
}