SOURCE

function setup(){
    createCanvas(600,600);
}
function draw(){
    if(mouseIsPressed){//shubiao dianji
        stroke(220);
    }else{
        stroke(0);
    }
    line(300,300,mouseX,mouseY);
}
console 命令行工具 X clear

                    
>
console