Companion
Default constructors for RGBInt.
Properties
Functions
Link copied to clipboard
Create a new instance of a color in this space from an array of components.
Link copied to clipboard
Create a chromatic adapter that will adapt RGBInt colors from a given sourceWhite to D65
Link copied to clipboard
fun <T : Color> ColorSpace<T>.interpolator(builder: InterpolatorBuilder.() -> Unit): Interpolator<T>
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
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