BackgroundImage

the image of the background of an element, drawn under it: none, or a gradient

Inheritors

Types

Link copied to clipboard
data class Linear(val angle: Double, val corner: Vector2?, val stops: List<GradientStop>, val repeating: Boolean = false) : BackgroundImage

A linear gradient: along angle in degrees, 0 up and 90 to the right, or towards the corner corner, (±1, ±1) with y down, when it is given

Link copied to clipboard
Link copied to clipboard
data class Radial(val circle: Boolean, val center: Vector2, val stops: List<GradientStop>, val repeating: Boolean = false) : BackgroundImage

A radial gradient around center, in fractions of the box, to its farthest corner: a circle, or an ellipse with the proportions of the box