Gradients¶
A gradient shows transitions between two or more colors. You can fill a shape or the outline of a shape with a gradient.
These gradients are available in Kanzi Shapes:
Linear gradient shows transitions along a straight line.
Radial gradient shows transitions radiating from an origin.
Sweep gradient shows transitions rotated around a center point.
See Using sweep gradient.
Gradient color stops¶
Color stops define the colors in gradients. A color stop is a combination of a color and stop length Use the CSS color stop syntax to set color stops. See https://www.w3.org/TR/css-images-4/#color-stop-syntax.
This table lists examples of gradient color stops.
Color stop element |
Example Gradient Stops |
Result |
---|---|---|
Color To define colors, use either:
|
![]() |
|
Color stop length To define color stop lengths, use either:
|
![]() |
|
Multi-position color stop Use multi-position color stops to create uniform colors areas. |
![]() |
|
Midpoint between color stops Use a color interpolation hint between two color stops to define the location of the color that is a halfway blend between the two colors. |
![]() |