Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Chapter 2. Drawing > 2.7. Paths, Stroking, and Filling - Pg. 88

88 Chapter 2 Drawing Table 2.4 Attribute CanvasRenderingContext2D shadow attributes Description A double value that determines how spread out a shadow appears. This property's value is used when the browser performs a Gaussian blur on the shadow. The value is used in a Gaussian blur equation and has nothing to do with pixels. The default value is 0 . A CSS3 color string. The default value is rgba(0,0,0,0) , which equates to fully transparent black. The offset, in pixels, in the X direction for the shadow. The default value is 0 . The offset, in pixels, in the Y direction for the shadow. The default value is 0 . shadowBlur shadowColor shadowOffsetX shadowOffsetY TIP: Shadows can be expensive to draw