ColorData

public final class ColorData implements IColorData

Class describing colorimetry data

Constructors

Link copied to clipboard
public ColorData ColorData(@Size(value = 3) DoubleArray xyz, ReferenceWhite reference, ScanMode mode)

Properties

Link copied to clipboard
private final Integer colorInt

sRGB value for this color (as a ColorInt).

Link copied to clipboard
private final String hexCode

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

Link copied to clipboard
private final ScanMode mode

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

Link copied to clipboard
private final ReferenceWhite reference

Reference white point for this color value.

Link copied to clipboard
private final IntArray rgbValue

sRGB value for this color.

Link copied to clipboard
private final IColorData.ColorType type

Type of color data stored in the value field.

Link copied to clipboard
private final DoubleArray value

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

Functions

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
public String getHexCode()
Link copied to clipboard
public ScanMode getMode()

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

sRGB value for this color.

Link copied to clipboard

Type of color data stored in the value field.

Link copied to clipboard

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