xxxxxxxxxx
32
let xShift, yShift;
let offset = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
noStroke();
angleMode(DEGREES);
blendMode(MULTIPLY);
}
function draw() {
// MOUSE MOVEMENT
let sluggishness = 6;
let shiftSize = width/10
let noiseX = ((noise(offset) - 0.5) * shiftSize)
xShift = noiseX;
yShift = noiseX /(cos(60) * 2);
clear();
background(255);
fill(255, 255, 0);
circle(width / 2, height / 2 - yShift, height / 2);
fill(0, 255, 255);
circle(width / 2 - xShift, height / 2 + yShift, height / 2);
fill(255, 0, 255);
circle(width / 2 + xShift, height / 2 + yShift, height / 2);
offset += 0.01
}