xxxxxxxxxx
45
let a = 50;
let b = 50;
function setup() {
createCanvas(400, 400);
a= mouseX;
b= mouseY;
// BLEND MODE
blendMode(DIFFERENCE);
}
function draw() {
background(0, mouseX, mouseY);
//MOUSE LOCATION AND COLOR
push()
translate(200, 200);
fill(150);
rotate (20)
square(-40, -33, 80, 33, 33, 75, 75);
fill(100);
ellipse(0, 17, 60, 60);
//MOUSE WHEEL & CLICKS
stroke(255);
line(-30, 16, 30, 16);
rect(-4, 16, 8, 25);
line(-4, 20, 4, 20);
line(-4, 24, 4, 24);
line(-4, 28, 4, 28);
line(-4, 32, 4, 32);
line(-4, 36, 4, 36);
line(0, -12, 0, 15);
pop();
//TEXT
fill(100);
textSize(20);
textAlign(CENTER);
textFont('Roboto');
text('Black Computer Gaming Mouse', 400 / 2, 400 - 100);
}