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
});
}
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
