动图两则
processing吧
全部回复
仅看楼主
level 7
老∮寒寒 楼主
2014年08月07日 07点08分 1
level 7
老∮寒寒 楼主
float a, l, s, x;
int c;
void setup() {
size(500, 500);
noStroke();
frameRate(30);
a = 1/PI; //决定螺线的形状
l = -.5; //决定圆环的粗细
s = 2 * dist(1, 0, pow(2, a*l) * cos(l), pow(2, a*l) * sin(l)) / (1 - pow(2, a*l));
}
void draw(){
c = 0;
pushMatrix();
translate(250, 250);
x = frameCount % 30 / 15.0;
for (float i = 22 + l*x; i > -40 + l*x; i += l) {
fill((c += 255) % 510);
ellipse(pow(2, a*i) * cos(i), pow(2, a*i) * sin(i), s * pow(2, a*i), s * pow(2, a*i));
}
popMatrix();
}
2014年08月07日 07点08分 2
[大拇指]
2014年11月09日 11点11分
求助!!!想要改成size大一些的 比如1200*900 改了一晚上都没改好qwq……
2014年11月26日 16点11分
回复 西西802323 :translate(600,450)
2014年11月27日 02点11分
level 7
膜拜[真棒]
2014年09月26日 02点09分 3
level 7
楼主,想问你,你的动图是用什么工具做的?
2014年09月26日 09点09分 4
一帧一帧地作做,用imagemagick导出gif。具体请参照 http://handsomeone.com/blog/dynamic-circles-and-static-spiral/
2014年09月26日 18点09分
回复 老∮寒寒 :imagemagic windows上怎么装啊,倒腾半天也没弄好[泪]
2014年09月27日 03点09分
回复 暖冰WI :感觉它是个很神奇的东西,还得求教请教
2014年09月27日 03点09分
level 1
有用到向量吗?我最近在学习向量。。。
2014年10月04日 03点10分 5
用不到
2014年10月04日 06点10分
回复 老∮寒寒 :哦哦,谢啦
2014年10月04日 09点10分
level 13
Cool!
2014年11月09日 13点11分 6
level 1
看不懂怎么搞的
2015年06月16日 08点06分 7
level 1
很不错 ,抽空做两个看看。
2015年07月12日 16点07分 8
level 2
楼主!求加
2015年07月17日 06点07分 9
wp狗没有贴吧客户端,你可以加我微信 handsome0ne ,中间是数字0
2015年07月21日 07点07分
回复 旺仔sweetgirl :微信号添加打开了 再试
2017年03月30日 01点03分
level 1
为什么我做的圆心是这样的并没有转起来....
2016年11月14日 07点11分 10
level 2
在openprocessing里面有看到这个作品
2016年11月14日 14点11分 11
level 3
求每步分析!:
2017年06月22日 13点06分 12
level 3
求分析
2017年06月23日 02点06分 13
level 1
阿基米德螺旋和斐波那契数列
2017年08月06日 07点08分 14
1