verticalGradient
Vertical gradient background running from startY to endY, with explicit color stops. Dimensions are in dp; endY left null means the tile's bottom edge.
Parameters
Explicit stop to color pairs, e.g. 0f to color(...).
Starting y position, in dp. Defaults to 0.
Ending y position, in dp. Defaults to none (the tile's bottom edge).
How the gradient repeats past its endY 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.
Vertical gradient background running from startY to endY, with colors spread evenly along the line. Dimensions are in dp; endY left null means the tile's bottom edge.
Parameters
Colors spread evenly along the gradient.
Starting y position, in dp. Defaults to 0.
Ending y position, in dp. Defaults to none (the tile's bottom edge).
How the gradient repeats past its endY 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.