ColorLSHABa

@Serializable
data class ColorLSHABa(val l: Double, val s: Double, val h: Double, val alpha: Double = 1.0, val ref: ColorXYZa = ColorXYZa.NEUTRAL) : ColorModel<ColorLSHABa> , ReferenceWhitePoint, HueShiftableColor<ColorLSHABa> , SaturatableColor<ColorLSHABa> , LuminosityColor<ColorLSHABa> , AlgebraicColor<ColorLSHABa> (source)

Based on ColorLCHABa, but instead tries to use a normalized chroma.

See also

Constructors

Link copied to clipboard
constructor(l: Double, s: Double, h: Double, alpha: Double = 1.0, ref: ColorXYZa = ColorXYZa.NEUTRAL)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val alpha: Double = 1.0

The opacity of the given color model.

Link copied to clipboard
val h: Double
Link copied to clipboard
open override val hue: Double
Link copied to clipboard
val l: Double
Link copied to clipboard
open override val luminosity: Double
Link copied to clipboard
open override val ref: ColorXYZa

The reference white point against which the color is calculated.

Link copied to clipboard
val s: Double
Link copied to clipboard
open override val saturation: Double

Functions

Link copied to clipboard
open operator override fun div(scale: Double): ColorLSHABa
Link copied to clipboard
open operator override fun minus(right: ColorLSHABa): ColorLSHABa
Link copied to clipboard
open override fun mix(other: ColorLSHABa, factor: Double): ColorLSHABa
Link copied to clipboard
open fun mixHue(hue: Double, factor: Double): ColorLSHABa
Link copied to clipboard
open fun mixLuminosity(luminosity: Double, factor: Double): ColorLSHABa
Link copied to clipboard
open fun mixSaturation(saturation: Double, factor: Double): ColorLSHABa
Link copied to clipboard
open override fun opacify(factor: Double): ColorLSHABa

Returns a copy of the color with the opacity (alpha) multiplied by a factor.

Link copied to clipboard
open operator override fun plus(right: ColorLSHABa): ColorLSHABa
Link copied to clipboard
open fun saturate(factor: Double): ColorLSHABa

Multiply the saturation by a factor.

Link copied to clipboard
Link copied to clipboard
open fun shiftHue(shiftInDegrees: Double): ColorLSHABa

Shift the hue of a color by the given amount of degrees.

Link copied to clipboard
open operator override fun times(scale: Double): ColorLSHABa
Link copied to clipboard
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

Link copied to clipboard
open override fun toVector4(): Vector4
Link copied to clipboard
open override fun withHue(hue: Double): ColorLSHABa
Link copied to clipboard
open override fun withLuminosity(luminosity: Double): ColorLSHABa
Link copied to clipboard
open override fun withSaturation(saturation: Double): ColorLSHABa