API

Class RadialGradient

Gradient formed from two circles with their own centers and radius. The coordinates of the circles centers are relative to the canvas' space, not to any control's space.

Hierarchy (View Summary)

Index
  • Creates a new radial gradient

    Parameters

    • Optionalx0: number

      x coordinate of the first circle's center

    • Optionaly0: number

      y coordinate of the first circle's center

    • Optionalr0: number

      radius of the first circle

    • Optionalx1: number

      x coordinate of the second circle's center

    • Optionaly1: number

      y coordinate of the second circle's center

    • Optionalr1: number

      radius of the second circle

    Returns RadialGradient