ColorXSLa

Practically identical to ColorHSLa, but for mapping colors to classical painter's scheme of complementary colors.

See also

Constructors

Link copied to clipboard
constructor(x: Double, s: Double, l: Double, alpha: Double = 1.0)

Types

Link copied to clipboard
object Companion

Functions

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

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

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

Multiply the saturation by a factor.

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

Multiply the shade by a factor.

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

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

Link copied to clipboard
open operator override fun times(scale: Double): ColorXSLa
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): ColorXSLa
Link copied to clipboard
open override fun withSaturation(saturation: Double): ColorXSLa

Properties

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

The opacity of the given color model.

Link copied to clipboard
open override val hue: Double
Link copied to clipboard
val l: Double
Link copied to clipboard
val s: Double
Link copied to clipboard
open override val saturation: Double
Link copied to clipboard
val x: Double