def setup background(220) x1 = degrees(PI) x2 = radians(x1) createDiv("#{x1}<br>#{x2}").position(0, 0) end
[p5.js] degrees
ラジアン単位で表されている角度の値を度数単位の値に変換します。
度数単位の値