public abstract class Gradient:
Base class for paint gradients.
gradient = LinearGradient(0, 0, 160, 0) gradient.addStop(0.0, Color.white()) gradient.addStop(1.0, Color(37, 99, 235, 1.0))
| Modifier and Type | Member | Description |
|---|---|---|
| public | addStop | Appends a color stop to the gradient. |
| public | clearStopsclearStops() as Void: |
Removes all color stops. |
| public | kindkind() as String: |
Returns the gradient kind. |
| public | setColorAt | Appends a color stop using the Qt-compatible method name. |
| public | stopsstops() as ArrayList<GradientStop>: |
Returns the configured color stops. |
| public | stopsDescriptionstopsDescription() as String: |
Returns a short human-readable description of the stops. |
| public override | toStringtoString() as String: |
No summary. |