Interface: ColorGradientFilterOptions

ColorGradientFilterOptions

Options for ColorGradientFilter constructor.

Properties:
Name Type Default Description
alpha number 1

Alpha value for the gradient.

angle number 90

Angle for linear gradients, in degrees.

maxColors number 0

Maximum number of colors to render (0 = no limit)

replace boolean false

If true, the gradient will replace the existing color, otherwise it will be multiplied with it

stops ColorStop[]

Collection of stops, must be 2+

type number ColorGradientFilter.LINEAR

Linear = 0, Radial = 1, Conic = 2

Members

alpha number

Alpha value for the gradient.

Default Value:
  • 1

angle number

Angle for linear gradients, in degrees.

Default Value:
  • 90

maxColors number

Maximum number of colors to render (0 = no limit)

Default Value:
  • 0

replace boolean

If true, the gradient will replace the existing color, otherwise it will be multiplied with it

Default Value:
  • false

stops ColorStop[]

Collection of stops, must be 2+

type number

Linear = 0, Radial = 1, Conic = 2

Default Value:
  • ColorGradientFilter.LINEAR