xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw(){
const blackVal = map(mouseX, 0, width, 0, 255);
const whiteVal = map(mouseY, 0, height, 0, 255);
//noStroke()
translate(mouseX, mouseY);
const Rotation = map(mouseY, 0, height, 0, PI);
rotate(rotationX, rotationY);
stroke(whiteVal, blackVal, 255);
line(- 100, 0, 100, 0);
}