xxxxxxxxxx
var pointX;
var pointY;
function setup() {
createCanvas(windowWidth, windowHeight);
background(50, 130, 200);
stroke(156, 48, 156);
strokeWeight(10);
}
function draw() {
blendMode(SCREEN);
if(mouseIsPressed) {
line(mouseX, mouseY, pointX, pointY);
}
}
function mousePressed() {
pointX = mouseX
pointY = mouseY
}