xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
}
function draw() {
var r = random(0,255);
var g = map(r,0,255,255,0);
var b = map(r,0,255,255,0);
if (mouseIsPressed){
stroke(r,g,b);
strokeWeight(4);
line(mouseX, mouseY, TAU * 100, PI * 100);
}
}