Adds a color stop to the gradient.


offset NumberThe stop offset from the start of the element.

Ranges from 0 (start of gradient) to 1 (end of gradient).

color StringThe color in any of the following formats.
Format Description
red Basic or Extended CSS Color name
#ff0000 Hex RGB value
rgb(255, 0, 0) RGB value

Specifying 'none', 'transparent' or '' (empty string) will clear the fill.

opacity NumberThe fill opacity.

Ranges from 0 (completely transparent) to 1 (completely opaque).

Returnskendo.drawing.GradientStop The new gradient color stop.

In this article
Not finding the help you need? Improve this article