mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Fix Bouncing Balls example.
This commit is contained in:
parent
3bf473924a
commit
1fd3d727d2
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
|||
]);
|
||||
var color = new HsbColor(Math.random() * 360, 1, 1);
|
||||
var gradient = new Gradient([color, 'black'], 'radial');
|
||||
compound.children[0].fillColor = new GradientColor(gradient, this.point,
|
||||
compound.fillColor = new GradientColor(gradient, this.point,
|
||||
this.point + this.radius, overlayPos);
|
||||
var overlay = new Path.Circle(overlayPos, this.radius / 2);
|
||||
var overlayColor = color.clone();
|
||||
|
|
Loading…
Reference in a new issue