RGBColor

actual data class RGBColor : KalugaColor

A KalugaColor that is represented by a single rgb-value

expect class RGBColor : KalugaColor

A KalugaColor that is represented by a single rgb-value

actual data class RGBColor : KalugaColor

A KalugaColor that is represented by a single rgb-value

Constructors

Link copied to clipboard
constructor(@ColorInt color: Int)
constructor(uiColor: UIColor)

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

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

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

Link copied to clipboard

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

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

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

Link copied to clipboard

Gets the blue 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

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

Link copied to clipboard
val color: Int

the ColorInt describing the color

Link copied to clipboard
open override val currentColor: Int

A ColorInt describing the Color for the current ui mode.

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

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 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
Link copied to clipboard

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

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

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

Link copied to clipboard

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

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

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

Link copied to clipboard
Link copied to clipboard
open override val uiColor: UIColor

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. If this is a KalugaColor.DarkLightColor each component wll be darkened individually.

Decreases the lightness of a KalugaColor.RGBColor 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. If this is a KalugaColor.DarkLightColor each component wll be lightened individually.

Increases the lightness of a KalugaColor.RGBColor 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

Link copied to clipboard

Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.

Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.

Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.