Contents

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