隨機的力量...
void setup(){size(720,720);clear();noStroke();for(int i=0;i<8;i++)f(360,360,i*PI/4,9);}
void f(float x,float y,float r,float z){
if(z>1){fill(z*40);circle(x+=cos(r)*6,y+=sin(r)*6,z);if(random(1)<.1)f(x,y,r+random(PI)-PI/2,z*.7);f(x,y,r+random(1)-.5,z-=.1);}}
Search
cos pi/2 在 How is cos(π/2+h) equal to −sin(h)? [duplicate] 的推薦與評價
I am not able to grasp the logic behind how cos(π2+h)=−sin(h). I was able to find an explanation on Reddit but it is not clear. ... <看更多>
相關內容