linearGradient
Linear gradient background running from start to end, with explicit color stops. Dimensions are in dp; end left null means the far edge of the tile.
Parameters
Explicit stop to color pairs, e.g. 0f to color(...).
Starting point of the gradient line. Defaults to the tile's origin (0, 0).
Ending point of the gradient line. Defaults to none (the tile's far edge).
How the gradient repeats past its end when it doesn't cover the whole tile. Defaults to clamp (extends the last color).
Opacity applied to the whole gradient, from 0f to 1f. Defaults to 1f.
Linear gradient background running from start to end, with colors spread evenly along the line. Dimensions are in dp; end left null means the far edge of the tile.
Parameters
Colors spread evenly along the gradient.
Starting point of the gradient line. Defaults to the tile's origin (0, 0).
Ending point of the gradient line. Defaults to none (the tile's far edge).
How the gradient repeats past its end when it doesn't cover the whole tile. Defaults to clamp (extends the last color).
Opacity applied to the whole gradient, from 0f to 1f. Defaults to 1f.