Class: GradientStop

html.GradientStop

Class representing a gradient stop for use in gradient elements.

new html.GradientStop ()

Properties:
Name Type Description
color string

(default: "red") The color at this stop.

position number

(default: 0) The position of this stop as a value between 0 and 1.

Extends

Events

html.GradientStop.event:valuesChange

Is triggered when the values change.