Package org.openrndr.color

Types

AlgebraicColor
Link copied to clipboard
interface AlgebraicColor<T : AlgebraicColor<T>> : LinearType<T>

Allows performing select algebraic operations on colors of this kind.

ColorATVa
Link copied to clipboard
data class ColorATVa(id: Int, t: Double, v: Double, alpha: Double)

The little-known Coloroid color space. There is a color atlas of hues, but their source has not been digitized.

ColorLABa
Link copied to clipboard

The CIELAB color space, more commonly known as Lab.

ColorLCHABa
Link copied to clipboard

The CIELChAB color space is the cylindrical representation of the CIELAB color space.

ColorLCHUVa
Link copied to clipboard

The CIELChUV color space is the cylindrical representation of the CIELUV color space.

ColorLSHABa
Link copied to clipboard
data class ColorLSHABa(l: Double, s: Double, h: Double, alpha: Double, ref: ColorXYZa)

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

ColorLSHUVa
Link copied to clipboard
data class ColorLSHUVa(l: Double, s: Double, h: Double, alpha: Double, ref: ColorXYZa)

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

ColorLUVa
Link copied to clipboard
ColorRGBa
Link copied to clipboard

A generic RGB color space capable of representing both the linear and the sRGB color spaces.

ColorXSLa
Link copied to clipboard

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

ColorXSVa
Link copied to clipboard

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

ColorXYZa
Link copied to clipboard
ColorYxya
Link copied to clipboard
data class ColorYxya(yy: Double, x: Double, y: Double, a: Double)

The Yxy color space, also known as the xyY color space.

ConvertibleToColorRGBa
Link copied to clipboard
interface ConvertibleToColorRGBa
Hue
Link copied to clipboard
data class Hue(name: Int, lambda: Double, angle: Double, xbl: Double, ybl: Double, zbl: Double, xl: Double, yl: Double, sl: Double)
HueShiftableColor
Link copied to clipboard
interface HueShiftableColor<T>
Linearity
Link copied to clipboard
enum Linearity : Enum<Linearity>
OpacifiableColor
Link copied to clipboard
interface OpacifiableColor<T>
SaturatableColor
Link copied to clipboard
interface SaturatableColor<T>
ShadableColor
Link copied to clipboard
interface ShadableColor<T>

Functions

findHue
Link copied to clipboard
fun findHue(id: Int): Hue?
hsl
Link copied to clipboard
fun hsl(h: Double, s: Double, l: Double): ColorHSLa
hsla
Link copied to clipboard
fun hsla(h: Double, s: Double, l: Double, a: Double): ColorHSLa
hsv
Link copied to clipboard
fun hsv(h: Double, s: Double, v: Double): ColorHSVa
hsva
Link copied to clipboard
fun hsva(h: Double, s: Double, v: Double, a: Double): ColorHSVa
mix
Link copied to clipboard
fun mix(left: ColorHSLa, right: ColorHSLa, x: Double): ColorHSLa

Weighted mix between two colors in the HSL color space.

fun mix(left: ColorHSVa, right: ColorHSVa, x: Double): ColorHSVa

Weighted mix between two colors in the HSVa color space.

fun mix(left: ColorLCHABa, right: ColorLCHABa, x: Double): ColorLCHABa

Weighted mix between two colors in the LChAB color space.

fun mix(left: ColorLCHUVa, right: ColorLCHUVa, x: Double): ColorLCHUVa

Weighted mix between two colors in the LChUV color space.

fun mix(left: ColorRGBa, right: ColorRGBa, x: Double): ColorRGBa

Weighted mix between two colors in the generic RGB color space.

fun mix(left: ColorXSLa, right: ColorXSLa, x: Double): ColorXSLa

Weighted mix between two colors in the XSL color space.

fun mix(left: ColorXSVa, right: ColorXSVa, x: Double): ColorXSVa

Weighted mix between two colors in the XSV color space.

fun mix(a: ColorYxya, b: ColorYxya, x: Double): ColorYxya
rgb
Link copied to clipboard
fun rgb(hex: String): ColorRGBa

Create color from a string encoded hex value

fun rgb(r: Double, g: Double = r, b: Double = r): ColorRGBa

Color in RGBa space. Specify one value only to obtain a shade of gray.

rgba
Link copied to clipboard
fun rgba(r: Double, g: Double, b: Double, a: Double): ColorRGBa

Create a color in RGBa space This function is a short-hand for using the ColorRGBa constructor

times
Link copied to clipboard
operator fun Matrix55.times(color: ColorRGBa): ColorRGBa

Properties

hues
Link copied to clipboard
val hues: List<Hue>