Class RadialGradient

x, y, r are all percent from 0 to 1 when globalCoord is false

Hierarchy

  • default
    • RadialGradient

Constructors

Properties

Methods

Constructors

  • Parameters

    • x: number
    • y: number
    • r: number
    • Optional colorStops: GradientColorStop[]
    • Optional globalCoord: boolean

    Returns RadialGradient

Properties

colorStops: GradientColorStop[]
global: boolean
id?: number
r: number
type: "radial"
x: number
y: number

Methods

  • Parameters

    • offset: number
    • color: string

    Returns void