Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

void setOffset(SvgLength offset)
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 with SvgUnit::Number

Parameters

offset
SvgLength — Required SvgLength to set for the stop offset.

setStopColor()

void setStopColor(com.amazon.kepler.uitoolkit.graphics.Color stopColor)
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 is Color::BLACK

Parameters

stopColor
com.amazon.kepler.uitoolkit.graphics.Color — Required Color to set for the stop color.

setStopOpacity()

void setStopOpacity(float stopOpacity)
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.

Parameters

stopOpacity
float — Required the float value to set for stop opacity.
Last modified on October 29, 2026