From 1fd3d727d272b4a618977a2feb9c2a74763c38cd Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 22 Nov 2012 21:08:17 +0100 Subject: [PATCH] Fix Bouncing Balls example. --- examples/Scripts/BouncingBalls.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Scripts/BouncingBalls.html b/examples/Scripts/BouncingBalls.html index 0d9051bb..0ef2ff88 100644 --- a/examples/Scripts/BouncingBalls.html +++ b/examples/Scripts/BouncingBalls.html @@ -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();