@JsType(namespace="xgl.color") public class CIELchColor extends WhitePointDefined
Modifier and Type | Field and Description |
---|---|
static ColorModel |
COLOR_MODEL |
static WhitePoint |
DEFAULT_WHITE_POINT |
ALICE_BLUE, alpha, ANTIQUE_WHITE, AQUA, AQUAMARINE, AZURE, BEIGE, BISQUE, BLACK, BLANCHED_ALMOND, BLUE, BLUE_VIOLET, BROWN, BURLY_WOOD, CADET_BLUE, CHARTREUSE, CHOCOLATE, CORAL, CORNFLOWER_BLUE, CORNSILK, CRIMSON, CYAN, DARK_BLUE, DARK_CYAN, DARK_GOLDEN_ROD, DARK_GRAY, DARK_GREEN, DARK_GREY, DARK_KHAKI, DARK_MAGENTA, DARK_OLIVE_GREEN, DARK_ORANGE, DARK_ORCHID, DARK_RED, DARK_SALMON, DARK_SEA_GREEN, DARK_SLATE_BLUE, DARK_SLATE_GRAY, DARK_SLATE_GREY, DARK_TURQUOISE, DARK_VIOLET, DEEP_PINK, DEEP_SKY_BLUE, DIM_GRAY, DIM_GREY, DODGER_BLUE, FIRE_BRICK, FLORAL_WHITE, FOREST_GREEN, FUCHSIA, GAINSBORO, GHOST_WHITE, GOLD, GOLDENROD, GRAY, GREEN, GREEN_YELLOW, GREY, HONEY_DEW, HOT_PINK, htmlColor, INDIAN_RED, INDIGO, IVORY, KHAKI, LAVENDER, LAVENDER_BLUSH, LAWN_GREEN, LEMON_CHIFFON, LIGHT_BLUE, LIGHT_CORAL, LIGHT_CYAN, LIGHT_GOLDENROD_YELLOW, LIGHT_GRAY, LIGHT_GREEN, LIGHT_GREY, LIGHT_PINK, LIGHT_SALMON, LIGHT_SEA_GREEN, LIGHT_SKY_BLUE, LIGHT_SLATE_GRAY, LIGHT_SLATE_GREY, LIGHT_STEEL_BLUE, LIGHT_YELLOW, LIME, LIME_GREEN, LINEN, MAGENTA, MAROON, MEDIUM_AQUAMARINE, MEDIUM_BLUE, MEDIUM_ORCHID, MEDIUM_PURPLE, MEDIUM_SEA_GREEN, MEDIUM_SLATE_BLUE, MEDIUM_SPRING_GREEN, MEDIUM_TURQUOISE, MEDIUM_VIOLET_RED, MIDNIGHT_BLUE, MINT_CREAM, MISTY_ROSE, MOCCASIN, NAVAJO_WHITE, NAVY, OLD_LACE, OLIVE, OLIVE_DRAB, ORANGE, ORANGE_RED, ORCHID, PALE_GOLDENROD, PALE_GREEN, PALE_TURQUOISE, PALE_VIOLETRED, PAPAYA_WHIP, PEACH_PUFF, PERU, PINK, PLUM, POWDER_BLUE, PURPLE, REBECCA_PURPLE, RED, ROSY_BROWN, ROYAL_BLUE, SADDLE_BROWN, SALMON, SANDY_BROWN, SEA_GREEN, SEA_SHELL, SIENNA, SILVER, SKY_BLUE, SLATE_BLUE, SLATE_GRAY, SLATE_GREY, SNOW, SPRING_GREEN, STEEL_BLUE, TAN, TEAL, THISTLE, TOMATO, TRANSPARENT, TURQUOISE, VIOLET, WHEAT, WHITE, WHITE_SMOKE, YELLOW, YELLOW_GREEN
Constructor and Description |
---|
CIELchColor(double lightness,
double chroma,
double hue) |
CIELchColor(double lightness,
double chroma,
double hue,
double alpha) |
CIELchColor(double lightness,
double chroma,
double hue,
double alpha,
WhitePoint whitePoint) |
CIELchColor(double lightness,
double chroma,
double hue,
WhitePoint whitePoint) |
Modifier and Type | Method and Description |
---|---|
static CIELchColor |
asCIELabColor(Color color,
WhitePoint whitePoint)
Converts a color from color model to CIE Lab color space
|
static CIELchColor |
fromCIELab(CIELabColor cieLab) |
static CIELabColor |
fromCIELch(CIELchColor cieLch) |
double |
getChroma() |
ColorModel |
getColorModel()
Returns the color space of the color.
|
WhitePoint |
getDefaultWhitePoint() |
double |
getHue() |
double |
getLightness() |
XYZColor |
xyz() |
getWhitePoint
cieLab, cieLab, cieLab, cieLab, cieLab, cieLab, cieLab, cieLab, cieLch, cieLch, cieLch, cieLch, cieLch, cieLch, cieLch, cieLch, cieLch, cieLch, cieLuh, cieLuh, cieLuh, cieLuh, cieLuh, cieLuh, cieLuv, cieLuv, cieLuv, cieLuv, cieLuv, cieLuv, cmy, cmy, cmy, cmy, cmy, cmy, cmy, cmy, cmy, cmy, cmyk, cmyk, cmyk, cmyk, cmyk, cmyk, cmyk, cmyk, cmyk, cmyk, getAlpha, hsi, hsi, hsi, hsi, hsi, hsi, hsl, hsl, hsl, hsl, hsl, hsl, hsl, hsl, hsv, hsv, hsv, hsv, hsv, hsv, hsv, hsv, hsv, hsv, htmlColor, hunterLab, hunterLab, hunterLab, hunterLab, hunterLab, hunterLab, hwb, hwb, hwb, hwb, hwb, hwb, hwb, hwb, rgb, rgb, rgb, rgb, rgb, rgb, rgb, rgb, rgb, rgb, rgb, srgb, srgb, srgb, toString, yxy, yxy, yxy, yxy
public static final ColorModel COLOR_MODEL
public static final WhitePoint DEFAULT_WHITE_POINT
@JsIgnore public CIELchColor(double lightness, double chroma, double hue)
@JsIgnore public CIELchColor(double lightness, double chroma, double hue, double alpha)
@JsIgnore public CIELchColor(double lightness, double chroma, double hue, WhitePoint whitePoint)
@JsIgnore public CIELchColor(double lightness, double chroma, double hue, double alpha, WhitePoint whitePoint)
public double getLightness()
public double getChroma()
public double getHue()
public ColorModel getColorModel()
Color
getColorModel
in class Color
public static CIELchColor asCIELabColor(Color color, WhitePoint whitePoint)
rgb
- color in the RGB color spacepublic WhitePoint getDefaultWhitePoint()
getDefaultWhitePoint
in class WhitePointDefined
public static CIELchColor fromCIELab(CIELabColor cieLab)
public static CIELabColor fromCIELch(CIELchColor cieLch)
Copyright © 2018 Xalys. All rights reserved.