Radial Gradient fill style.

Instances of RadialGradientFill are immutable, meaning that its setters don't modify the object, but instead return a completely new modified object.

Hierarchy

  • RadialGradientFillStyleRecord
    • RadialGradientFill

Implements

Constructors

Properties

The extent for gradient.

Defines where the gradient takes it's size.

position: Point

Gradient center position.

A element relative coordinate. 0 to 1 coordinate space. { x: 0, y: 0 } is bottom left. { x: 1, y: 1 } is top right.

The shape for the gradient

stops: ColorStop[]

Gradient color stops

type: "fillstyle" = 'fillstyle'

Methods

  • Get the center position of the gradient.

    Returns Point