搜索资源列表
C++
- 编写一个程序,在屏幕上出现一个圆心沿正弦曲线轨迹移动的实心圆,要求每隔4分之一周期,圆的填充色和圆的周边颜色都发生变化(颜色自己选取),同时圆的半径在四分之一周期内由正弦曲线幅值的0.2倍至0.6倍的线性增长。-The preparation of a procedure on the screen there is a center of a circle along the sinusoid trajectory mobile solid round, one request every 4
fractal-use
- 分形的练习一 ①Koch曲线 用复数的方法来迭代Koch曲线 clear i 防止i被重新赋值 A=[0 1] 初始A是连接(0,0)与(1,0)的线段 t=exp(i*pi/3) n=2 n是迭代次数 for j=0:n A=A/3 a=ones(1,2*4^j) A=[A (t*A+a/3) (A/t+(1/2+sqrt(3)/6*i)*a) A+2/3*a] end plot(real(A),imag(A)) axis([0 1 -