Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: FxObj
Wraps JavaFX RadialGradient, a paint that radiates colors outward from a center focal point through a series of color stops. The focal point can be offset from the center using a focus angle and distance, and coordinates may be proportional or absolute. A cycle method controls how the gradient repeats beyond the defined radius. It can be used with GraphicsContext setFill() and setStroke() in place of a solid Color.
RadialGradient (double FocusAngle, double FocusDistance, double CenterX, double CenterY, double Radius, bool Proportional, string CycleMethod, list Stops)
Creates a new radial gradient.
FocusAngle is a double with the angle of the focus point in degrees.FocusDistance is a double with the distance of the focus point from the center (0.0 to 1.0).CenterX is a double with the center X coordinate.CenterY is a double with the center Y coordinate.Radius is a double with the radius of the gradient.Proportional is a bool. When true, coordinates are proportional (0.0 to 1.0). When false, they are absolute.CycleMethod is a string with the cycle method: NO_CYCLE, REFLECT, or REPEAT.Stops is a list of Stop objects defining the gradient colors.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.