xxxxxxxxxx
25
function setup() {
createCanvas(400, 400);
colorMode(HSL);
blendMode(SCREEN);
background(0);
}
function draw() {
noStroke();
translate(200, 200)
let x = cos(frameCount / 100) * 150;
let y = sin(frameCount / 125) * 150;
fill((frameCount / 100) % 360, 75, 75, 0.1);
ellipse(x, y, y / 5, x / 5);
}
function keyPressed() {
if (keyCode === 32) {
push();
blendMode(BURN);
background(0);
pop();
}
}