Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Stop

[14:7] extends: FxObj

Wraps JavaFX Stop, a color-stop point used in gradient definitions such as LinearGradient and RadialGradient. Each Stop pairs a Color with a normalized offset value between 0.0 and 1.0 that marks where that color appears along the gradient path. Multiple stops are combined in order to produce smooth multi-color transitions.

Methods

  • Stop (double Offset, object ColorObj)

    Creates a new color stop at the specified position.

    • @p Offset is a double from 0.0 to 1.0 specifying the position along the gradient.
    • @p ColorObj is a Color object for this stop.