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 ISvgRadialGradient

interface ISvgRadialGradient
Extends ISvgGradient Represents an SVG radialGradient element. The radialGradient element defines a gradient that radiates outward from a focus point. See also - ISvgGradient.

Methods

setCx()

void setCx(SvgLength cx)
Sets the cx attribute, the X-coordinate of the radial gradient’s center. This attribute defines the x coordinate of the end circle of the radial gradient. Default value is 50.0 with SvgUnit::Percentage

Parameters

cx
SvgLength — Required SvgLength to set as the X-coordinate of the gradient’s center.

setCy()

void setCy(SvgLength cy)
Sets the cy attribute, the Y-coordinate of the radial gradient’s center. This attribute defines the y coordinate of the end circle of the radial gradient. Default value is 50.0 with SvgUnit::Percentage

Parameters

cy
SvgLength — Required SvgLength to set as the Y-coordinate of the gradient’s center.

setFr()

void setFr(SvgLength fr)
Sets the fr attribute, the radius of the focal point of the radial gradient. This attribute defines the radius of the start circle of the radial gradient. The gradient will be drawn such that the 0% stop is mapped to the perimeter of the start circle. Default value is 0.0 with SvgUnit::Percentage

Parameters

fr
SvgLength — Required SvgLength to set as the focal radius of the gradient.

setFx()

void setFx(SvgLength fx)
Sets the fx attribute, the X-coordinate of the focal point of the radial gradient. This attribute defines the x coordinate of the start circle of the radial gradient. Default value is 50.0 with SvgUnit::Percentage

Parameters

fx
SvgLength — Required SvgLength to set as the X-coordinate of the gradient’s focal point.

setFy()

void setFy(SvgLength fy)
Sets the fy attribute, the Y-coordinate of the focal point of the radial gradient. This attribute defines the y coordinate of the start circle of the radial gradient. Default value is 50.0 with SvgUnit::Percentage

Parameters

fy
SvgLength — Required SvgLength to set as the Y-coordinate of the gradient’s focal point.

setRadius()

void setRadius(SvgLength radius)
Sets the radius attribute, the radius of the radial gradient. This attribute defines the radius of the end circle of the radial gradient. The gradient will be drawn such that the 100% stop is mapped to the perimeter of the end circle. Default value is 50.0 with SvgUnit::Percentage

Parameters

radius
SvgLength — Required SvgLength to set as the radius of the gradient.
Last modified on October 29, 2026