GradientStop constructor

GradientStop(color, position)

Initializes a new instance of the GradientStop class.

GradientStop(color: string, position: number)
ParameterTypeDescription
colorstringRepresents the color of the gradient stop.
positionnumberRepresents the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.

GradientStop(color, position, transparency)

Initializes a new instance of the GradientStop class.

GradientStop(color: string, position: number, transparency: number)
ParameterTypeDescription
colorstringRepresents the color of the gradient stop.
positionnumberRepresents the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.
transparencynumberRepresents the transparency of a stop within the gradient expressed as a percent in range 0.0 to 1.0.

See Also