xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw() {
blendMode(BLEND);
background(0);
blendMode(SCREEN);
// ellipse(mouseX, mouseY, 20, 20);
let redColor = color("#eb3434");
let blueColor = color("#34b4eb");
for(let i =0 ; i <width*2 ; i += 100){
redColor.setAlpha(40);
fill(redColor);
ellipse(0,height/2,i+mouseX);
}
for(let i =0 ; i <width*2 ; i += 100){
blueColor.setAlpha(30);
fill(blueColor);
ellipse(width,height/2,i+mouseY);
}
}