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; } }