Commit ef24a5ef authored by Christopher S Barnett's avatar Christopher S Barnett
Browse files

-variation with subtler animation. removes arrow marker from 'spark'

and reduces 'trail' size.
parent 387fa978
This diff is collapsed.
......@@ -225,7 +225,7 @@
}
}
this.tailPointsCount = 50; // 拖尾点数
this.tailPointsCount = 10; // 拖尾点数
this.centerX = centerX;
this.centerY = centerY;
this.startAngle = startAngle;
......@@ -247,17 +247,17 @@
this.animateBlur = true;
this.marker = new Marker({
x: 50,
y: 80,
rotation: 50 * Math.PI / 180,
style: 'arrow',
color: 'rgb(255, 255, 255)',
size: 2,
zoom: zoom,
borderWidth: 0,
borderColor: this.strokeStyle
});
/* this.marker = new Marker({
x: 50,
y: 80,
rotation: 50 * Math.PI / 180,
style: 'arrow',
color: 'rgba(255, 255, 255, 0.5)',
size: 1.0,
zoom: zoom,
borderWidth: 0,
borderColor: this.strokeStyle
});*/
};
S.prototype.setFactor = function (multiplier) {
......@@ -313,10 +313,10 @@
context.save();
context.translate(this.centerX, this.centerY);
this.marker.x = Math.cos(this.trailAngle) * this.radius;
this.marker.y = Math.sin(this.trailAngle) * this.radius;
this.marker.rotation = this.trailAngle + Math.PI / 2;
this.marker.draw(context);
/* this.marker.x = Math.cos(this.trailAngle) * this.radius;
this.marker.y = Math.sin(this.trailAngle) * this.radius;
this.marker.rotation = this.trailAngle + Math.PI / 2;
this.marker.draw(context);*/
context.restore();
if ((endAngle - this.trailAngle) * 180 / Math.PI < 0.5) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment