Spec-Zone .ru
спецификации, руководства, описания, API

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

Variable Summary

access name type Can Read Can Init Can Write Default Value description
public-init color Color null

The color of the gradient at this offset.

public-init offset Number 0.0

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

The offset variable is a number ranging from 0 to 1 that indicates where this gradient stop is placed. For linear gradients, the offset variable 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.

0.0

Profile: common

 

Inherited Variables

Inherited Functions