xxxxxxxxxx
function setup() {
createCanvas(400,400);
}
function draw() {
background('lightblue');
strokeWeight(10);
strokeCap(SQUARE);
stroke('black');
var designL = (mouseIsPressed) ? mouseX : 75;
var designR = 325;
line(designL, 50, designR, 50);
line(designL, 100, designR, 100);
line(designL, 150, designR, 150);
line(designL, 200, designR, 200);
line(designL, 250, designR, 250);
line(designL, 300, designR, 300);
noStroke();
textAlign(LEFT);
text("designL = " + designL, designL, 70);
textAlign(RIGHT);
text("designR = " + designR, designR, 120);
}