setShadow(offset:blur:color:)
Enables shadowing with color a graphics context.
Declaration
func setShadow(offset: CGSize, blur: CGFloat, color: CGColor?)Parameters
- offset:
Specifies a translation in base-space.
- blur:
A non-negative number specifying the amount of blur.
- color:
Specifies the color of the shadow, which may contain a non-opaque alpha value. If
NULL, then shadowing is disabled.
See Also
Setting Fill, Stroke, and Shadow Colors
setFillColor(_:)setFillColor(_:)setFillColor(cyan:magenta:yellow:black:alpha:)setFillColor(gray:alpha:)setFillColor(red:green:blue:alpha:)setFillColorSpace(_:)setShadow(offset:blur:)setStrokeColor(_:)setStrokeColor(_:)setStrokeColor(cyan:magenta:yellow:black:alpha:)setStrokeColor(gray:alpha:)setStrokeColor(red:green:blue:alpha:)setStrokeColorSpace(_:)setStrokePattern(_:colorComponents:)setAlpha(_:)