09/06/26 01:41:00
>>324
そこはOKです。
radians(180)=3.14ですよね。
自分が読んでいるソースの一部を抜粋します。
いまいち何をやっているのかが不明なんです・・・。
// 一部抜粋
float sens=0.01;
float a0 =random(-2.5,2.5)*sens;
float a1 =random(-2.5,2.5)*sens;
float ox=random(-width/2,width/2);
float oy=random(-height/2,height/2);
float scal = 200;
この括弧の中をdrawでループしてる感じ{
nx=(sin(a0*oy)-cos(a1*ox))*scal;
ny=(sin(a2*ox)-cos(a3*oy))*scal;;
line(nx,ny,nx,ny);
}