JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

Defines one element of the ramp of colors to use on a gradient. For more information see javafx.scene.paint.LinearGradient and javafx.scene.paint.RadialGradient.

Example:


 // object bounding box relative (proportional:true, default)
 Rectangle {
     x: 0 y: 0 width: 100 height: 100
     fill: LinearGradient {
         startX: 0.0
         startY: 0.0
         endX: 1.0
         endY: 0.0
         stops: [
            Stop { offset: 0.0 color: Color.BLACK },
            Stop { offset: 1.0 color: Color.RED }
         ]
     }
 }

Profile: common

This comment needs review.

Attribute Summary

nametypedescription
Public
colorColor

The color of the gradient at this offset.

More: [+]

The color of the gradient at this offset.

Profile: common

offsetNumber

The offset attribute is a number ranging from 0 to 1 which indicates where this gradient stop is placed.

More: [+]

The offset attribute is a number ranging from 0 to 1 which indicates where this gradient stop is placed. For linear gradients, the offset attribute represents a location along the gradient vector. For radial gradients, it represents a percentage distance from (focusX,focusY) to the edge of the outermost/largest circle.

Profile: common

Protected

Inherited Attributes

Inherited Functions