Interface ISvgStop
interface ISvgStop
Extends ISvgNode
Represents an SVG stop element.
The stop SVG element defines a color and its position to use on a gradient.
This element is always a child of a linearGradient or radialGradient element.
See also - ISvgNode.
Methods
setOffset()
Sets the offset for the color stop. This attribute defines where the gradient stop is placed along the gradient vector. Default value is 0.0 withvoidsetOffset(SvgLengthoffset)
SvgUnit::Number
Parameters
offset
SvgLength — Required
SvgLength to set for the stop offset.
setStopColor()
Sets the stop-color property for the element. This attribute defines the color of the gradient stop. It can be used as a CSS property. Default value isvoidsetStopColor(com.amazon.kepler.uitoolkit.graphics.ColorstopColor)
Color::BLACK
Parameters
stopColor
com.amazon.kepler.uitoolkit.graphics.Color — Required
Color to set for the stop color.
setStopOpacity()
Sets the stop-opacity property for the element. This attribute defines the opacity of the gradient stop. It can be used as a CSS property. Default value: 1 ranging from 0.0 (fully transparent) to 1.0 (fully opaque). Any out of range values will be clamped between 0 and 1 including.voidsetStopOpacity(floatstopOpacity)
Parameters
stopOpacity
float — Required
the float value to set for stop opacity.

