xxxxxxxxxx
function setup() {
createCanvas(700, 400);
background(225);
}
function draw() {
rondamLine(mouseX, mouseY, pmouseX, pmouseY);
}
function rondamLine(x, y, px, py) {
var speed = abs(x-px) + abs(y-py);
stroke(speed);
line(x, y, px, py);
}