Color

expect class Color : Closable

Represents an RGB color.

actual class Color : Closable
actual class Color : Closable

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Functions

close
Link copied to clipboard
abstract fun close()
open override fun close()
open override fun close()
Link copied to clipboard
expect fun darken(level: UByte): Color

Gets a darker color.

actual fun darken(level: UByte): Color
actual fun darken(level: UByte): Color
Link copied to clipboard
expect fun lighten(level: UByte): Color

Gets a lighter color.

actual fun lighten(level: UByte): Color
actual fun lighten(level: UByte): Color
Link copied to clipboard
expect fun mix(otherColor: Color, ratio: Opacity): Color
expect fun mix(otherColor: Color, ratio: UByte): Color

Mixes this color with the other color via a given ratio.

actual fun mix(otherColor: Color, ratio: Opacity): Color
actual fun mix(otherColor: Color, ratio: UByte): Color
actual fun mix(otherColor: Color, ratio: Opacity): Color
actual fun mix(otherColor: Color, ratio: UByte): Color

Properties

Link copied to clipboard
expect var blue: UShort

Blue colour value.

actual var blue: UShort
actual var blue: UShort
Link copied to clipboard
expect var full: UShort

The full RGB (Red, Green, Blue) color value.

actual var full: UShort
actual var full: UShort
Link copied to clipboard
expect var green: UShort

Green colour value.

actual var green: UShort
actual var green: UShort
lvColorPtr
Link copied to clipboard
val lvColorPtr: CPointer<lv_color_t>?
val lvColorPtr: CPointer<lv_color_t>?
Link copied to clipboard
expect var red: UShort

Red colour value.

actual var red: UShort
actual var red: UShort

Extensions

toCValue
Link copied to clipboard
fun Color.toCValue(): CValue<lvglkt_color_t>
fun Color.toCValue(): CValue<lvglkt_color_t>