SOURCE

let angle = 0.0;
function setup(){
    createCanvans(360,240);
    smooth();
}
function draw(){
    let sinVal = sin(radians(angle));
    sinVal = map(sinVal,-1,1,0,360/PI);
    point(angle,sinVal);
    if(angle<360){
        angle+= 1;
    }
}
console 命令行工具 X clear

                    
>
console