xxxxxxxxxx
let c = '#000000'
function setup() {
createCanvas(400, 400);
background('#FFFFFC');
}
function draw() {
background('#FFFFFC');
noStroke()
if((mouseX>width/2)&&(mouseY>height/2)){
c ='#FF4000'
}
//black triangle
fill(c)
triangle(100,100, 100,300, 300,100);
//orange triangle
fill('#000000')
triangle(300,100, 100,300, 300,300);
}