Docs: Fix shadow example.

This commit is contained in:
Jürg Lehni 2013-09-12 15:30:07 -07:00
parent cc29cab671
commit 5a45260740

View file

@ -430,18 +430,19 @@ var Style = Base.extend(new function() {
* @type Color * @type Color
* *
* @example {@paperscript} * @example {@paperscript}
* // Setting the shadow color of a path to black: * // Creating a circle with a black shadow:
*
* // Create a circle shaped path at { x: 80, y: 50 }
* // with a radius of 35:
* var circle = new Path.Circle(new Point(80, 50), 35);
* *
* var circle = new Path.Circle({
* center: [80, 50],
* radius: 35,
* fillColor: 'white',
* // Set the shadow color of the circle to RGB black: * // Set the shadow color of the circle to RGB black:
* circle.shadowColor = new Color(0, 0, 0); * shadowColor: new Color(0, 0, 0),
* * // Set the shadow blur radius to 12:
* // Set the shadow blur, offset to { x: 10, y: 10 } * shadowBlur: 12,
* circle.shadowBlur = 10; * // Offset the shadow by { x: 5, y: 5 }
* circle.shadowOffset = new Poit(10, 10); * shadowOffset: new Point(5, 5)
* });
*/ */
/** /**