Constructors
Creates a new GradientStop object.
- Parameters:
- color: Color — the color of the stop — optional, default: new GrayColor(0)
- rampPoint: Number — the position of the stop on the gradient ramp — optional, default: 0
- midPoint: Number — the position where the color of the stop blends equally with the color of the next stop. — optional, default: 0.5
- Returns:
- GradientStop
- Parameters:
- stop: GradientStop
- Returns:
- GradientStop
Properties
The midpoint of the gradient stop describes the position where the color of the stop blends equally with the color of the next gradient stop.
- Returns:
- Number — the midpoint of the gradient as a value between 0 and 1
The position of the gradient stop on the gradient ramp.
- Returns:
- Number — a value between 0 and 1