Creates a linear gradient of many colors.
Requires graphicsbuilder-ext-jdk6 and Java6+.
Properties
Property |
Default |
Notes |
|---|---|---|
x1 |
|
|
y1 |
|
|
x2 |
|
|
y2 |
|
|
cycle |
|
value must be any of ['nocycle','reflect','repeat] or any MultipleGradientPaint.CycleMethod |
stretch |
|
Scales the gradient to fit the Shape's bounds |
fit |
|
Scales the gradient retaining the aspect ratio |
stops |
|
must define at least two stops |
Stops
Property |
Default |
Notes |
|---|---|---|
offset |
|
a float value in the range [0..1] |
color |
|
a Color or a color string |
Example
The following example takes advantage of paint reuse with paint
Labels