IColorData

interface IColorData

Interface describing colorimetry data

Inheritors

Types

Link copied to clipboard

Enum describing the available color difference (delta E) equations.

Link copied to clipboard

Enum to describe the base color data types available for IColorData objects. Values for each of these types can be freely converted to each other without loss of color data.

Properties

Link copied to clipboard
open val colorInt: Int

sRGB value for this color (as a ColorInt).

Link copied to clipboard
open val hexCode: String

sRGB value for this color as a HEX string (#RRGGBB)

Link copied to clipboard
abstract val mode: ScanMode

Scan mode for this value (one of ScanMode.M0, ScanMode.M1, or ScanMode.M2).

Link copied to clipboard

Reference white point for this color value.

Link copied to clipboard
abstract val rgbValue: IntArray

sRGB value for this color.

Link copied to clipboard

Type of color data stored in the value field.

Link copied to clipboard
abstract val value: DoubleArray

Color value (3 coordinates) in the format specified by mode.

Functions

Link copied to clipboard
abstract fun compareTo(other: IColorData, type: IColorData.ColorDifferenceType = ColorDifferenceType.CIE2000): Double

Calculate delta E between this color and another. The colors must share the same reference white point (reference)

Link copied to clipboard

Convert this color value to another ColorType.