Companion

Default constructors for the LAB color model: the LAB65 space.

Properties

Link copied to clipboard
open override val components: List<ColorComponentInfo>

Information about the components (sometimes called channels) of this color.

Link copied to clipboard
open override val name: String

The name of this color

Link copied to clipboard
open override val whitePoint: WhitePoint

The white point that colors in this space are calculated relative to.

Functions

Link copied to clipboard
open override fun convert(color: Color): LAB

Convert a color to this space

Link copied to clipboard
open override fun create(components: FloatArray): LAB

Create a new instance of a color in this space from an array of components.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Build an interpolator that will produce colors in this color space.

fun <T : Color> ColorSpace<T>.interpolator(vararg stops: Color, premultiplyAlpha: Boolean = true): Interpolator<T>

Build a linear interpolator with two or more evenly spaced stops.

Link copied to clipboard
open operator override fun invoke(l: Float, a: Float, b: Float, alpha: Float): LAB
open operator override fun invoke(l: Number, a: Number, b: Number, alpha: Number): LAB
Link copied to clipboard
fun <T : Color> ColorSpace<T>.mix(color1: Color, color2: Color, hueAdjustment: ComponentAdjustment = HueAdjustments.shorter): Color
fun <T : Color> ColorSpace<T>.mix(color1: Color, color2: Color, amount2: Number, hueAdjustment: ComponentAdjustment = HueAdjustments.shorter): Color
fun <T : Color> ColorSpace<T>.mix(color1: Color, amount1: Number, color2: Color, hueAdjustment: ComponentAdjustment = HueAdjustments.shorter): Color

fun <T : Color> ColorSpace<T>.mix(color1: Color, amount1: Number, color2: Color, amount2: Number, hueAdjustment: ComponentAdjustment = HueAdjustments.shorter): Color

Mix amount1 of color1 and amount2 of color2 in this color space.