KalugaColor

actual typealias KalugaColor = Int

Class describing a color

expect class KalugaColor

Class describing a color

actual data class KalugaColor(val uiColor: <Error class: unknown class>)

Class describing a color

actual typealias KalugaColor = Int

Class describing a color

actual typealias KalugaColor = Int

Class describing a color

Constructors

Link copied to clipboard
constructor(uiColor: <Error class: unknown class>)

Properties

Link copied to clipboard

Gets the alpha value of the color in a range between 0.0 and 1.0

Gets the alpha value of the color in a range between 0.0 and 1.0

Link copied to clipboard

Gets the alpha value of the color in a range between 0 and 255

Gets the alpha value of the color in a range between 0 and 255

Link copied to clipboard
expect val KalugaColor.blue: Double

Gets the blue value of the color in a range between 0.0 and 1.0

actual val KalugaColor.blue: Double

Gets the blue value of the color in a range between 0.0 and 1.0

Link copied to clipboard
expect val KalugaColor.blueInt: Int

Gets the blue value of the color in a range between 0 and 255

actual val KalugaColor.blueInt: Int

Gets the green value of the color in a range between 0 and 255

Link copied to clipboard

Gets the green value of the color in a range between 0.0 and 1.0

Gets the green value of the color in a range between 0.0 and 1.0

Link copied to clipboard

Gets the green value of the color in a range between 0 and 255

Gets the blue value of the color in a range between 0 and 255

Link copied to clipboard

The hex string representing this color

Link copied to clipboard

Gets the HSLColor equivalent to this KalugaColor

Link copied to clipboard
Link copied to clipboard
expect val KalugaColor.red: Double

Gets the red value of the color in a range between 0.0 and 1.0

actual val KalugaColor.red: Double

Gets the red value of the color in a range between 0.0 and 1.0

Link copied to clipboard
expect val KalugaColor.redInt: Int

Gets the red value of the color in a range between 0 and 255

actual val KalugaColor.redInt: Int

Gets the red value of the color in a range between 0 and 255

Link copied to clipboard
Link copied to clipboard
val uiColor: <Error class: unknown class>

the UIColor describing the color

Functions

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.ColorBurn

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.ColorBlend

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Darken

Link copied to clipboard

Decreases the lightness of a KalugaColor by this factor.

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Difference

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.ColorDodge

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Exclusion

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.HardLight

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Hue

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Lighten

Link copied to clipboard

Increases the lightness of a KalugaColor by this factor.

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Luminosity

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Multiply

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Normal

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Overlay

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Saturation

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Screen

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.SoftLight