GradientBackground

class GradientBackground(val orientation: ObservableOrientation, fromColor: Color, toColor: Color) : Background

Draws a Background as a linear gradient. The left/bottom is fromColor and the right/top is toColor depending on orientation.

Constructors

Link copied to clipboard
constructor(orientation: ObservableOrientation, fromColor: Color, toColor: Color)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun draw(x: Float, y: Float, width: Float, height: Float, size: Edges)

Draw the background of an area.