这是一款设计感视觉传达效果非常NICE的canvas代码,赶紧体验一下吧,不错的动画特效。
function Branch( hue, x, y, angle, vel ) {
var move = 15;
this.x = x + rand( -move, move );
this.y = y + rand( -move, move );
this.points = [];
this.angle = angle != undefined ? angle : rand( 0, Math.PI * 1 );
this.vel = vel != undefined ? vel : rand( -4, 4 );
this.spread = 0;
this.tick = 0;
this.hue = hue != undefined ? hue : 200;
this.life = 1;
this.decay = 0.0015;
this.dead = false;
this.points.push({
x: this.x,
y: this.y
});
}
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791