炫酷Canvas光线爆炸特效

来源:https://www.sucaihuo.com/js/1645.html 2017-04-05 23:29浏览(1432) 收藏

这是一款设计感视觉传达效果非常NICE的canvas代码,赶紧体验一下吧,不错的动画特效。
炫酷Canvas光线爆炸特效
分类:html5 > canvas 难易:初级
查看演示 下载资源 下载积分: 50 积分
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
	});
}
标签: 动画canvas
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2