See also

Parameters

h

hue in degrees, where a full rotation is 360.0 degrees

s

saturation as a percentage between 0.0 and 1.0

l

lightness/luminance as a percentage between 0.0 and 1.0

a

alpha as a percentage between 0.0 and 1.0

Constructors

ColorHSLa
Link copied to clipboard
fun ColorHSLa(h: Double, s: Double, l: Double, a: Double = 1.0)

Types

Companion
Link copied to clipboard
object Companion

Functions

div
Link copied to clipboard
open operator override fun div(scale: Double): ColorHSLa
invoke
Link copied to clipboard
operator fun invoke(h: Double = this.h, s: Double = this.s, l: Double = this.l, a: Double = this.a): ColorHSLa
minus
Link copied to clipboard
open operator override fun minus(right: ColorHSLa): ColorHSLa
mix
Link copied to clipboard
open override fun mix(other: ColorHSLa, factor: Double): ColorHSLa
plus
Link copied to clipboard
open operator override fun plus(right: ColorHSLa): ColorHSLa
saturate
Link copied to clipboard
open override fun saturate(factor: Double): ColorHSLa

Multiply the saturation by a factor.

shade
Link copied to clipboard
open override fun shade(factor: Double): ColorHSLa

Multiply the shade by a factor.

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

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

times
Link copied to clipboard
open operator override fun times(scale: Double): ColorHSLa
toHSVa
Link copied to clipboard
fun toHSVa(): ColorHSVa
toLABa
Link copied to clipboard
fun toLABa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLABa
toLCHABa
Link copied to clipboard
fun toLCHABa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLCHABa
toLCHUVa
Link copied to clipboard
fun toLCHUVa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLCHUVa
toLUVa
Link copied to clipboard
fun toLUVa(ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLUVa
toRGBa
Link copied to clipboard
open override fun toRGBa(): ColorRGBa

Convert into ColorRGBa.

toString
Link copied to clipboard
open override fun toString(): String
toXSLa
Link copied to clipboard
fun toXSLa(): ColorXSLa

convert to ColorXSLa

toXYZa
Link copied to clipboard
fun toXYZa(): ColorXYZa

Properties

a
Link copied to clipboard
val a: Double = 1.0
h
Link copied to clipboard
val h: Double
l
Link copied to clipboard
val l: Double
s
Link copied to clipboard
val s: Double
unit
Link copied to clipboard
val unit: ColorHSLa