@JsType(namespace="xgl.color") public abstract class Color extends Object
Constructor and Description |
---|
Color() |
Modifier and Type | Method and Description |
---|---|
CIELabColor |
cieLab() |
static CIELabColor |
cieLab(CIELabColor cieLab)
Converts a color to CIE Lab color space
|
static CIELabColor |
cieLab(CIELabColor cieLab,
WhitePoint whitePoint)
Converts a color from space to CIE Lab color space
|
static CIELabColor |
cieLab(Color color)
Converts a color to CIE Lab color space
|
static CIELabColor |
cieLab(Color color,
WhitePoint whitePoint)
Converts a color from space to CIE Lab color space
|
CIELabColor |
cieLab(WhitePoint whitePoint) |
static CIELabColor |
cieLab(XYZColor xyz)
Converts a color from XYZ color space to CIE Lab color space
|
static CIELabColor |
cieLab(XYZColor xyz,
WhitePoint whitePoint)
Converts a color from XYZ color space to CIE Lab color space
|
CIELchColor |
cieLch() |
static CIELchColor |
cieLch(CIELabColor cieLab)
Converts a color from XYZ color space to CIE L*uv color space
|
static CIELchColor |
cieLch(CIELabColor cieLab,
WhitePoint whitePoint)
Converts a color from CIE L*ab color model to CIE L*ch color model
|
static CIELchColor |
cieLch(CIELchColor cieLch)
Converts a color from XYZ color space to CIE L*uv color space
|
static CIELchColor |
cieLch(CIELchColor cieLch,
WhitePoint whitePoint)
Converts a color from XYZ color space to CIE L*uv color space
|
static CIELchColor |
cieLch(Color color)
Converts a color to CIE L*ch color model with the default CIE L*ch white
point
|
static CIELchColor |
cieLch(Color color,
WhitePoint whitePoint)
Converts a color from RGB color space to CIE L*uv color space
|
CIELchColor |
cieLch(WhitePoint whitePoint) |
static CIELchColor |
cieLch(XYZColor xyz)
Converts a color from XYZ color space to CIE L*uv color space
|
static CIELchColor |
cieLch(XYZColor xyz,
WhitePoint whitePoint)
Converts a color from XYZ color space to CIE L*uv color space
|
CIELuhColor |
cieLuh() |
static CIELuhColor |
cieLuh(CIELuvColor cieLuv)
Converts a color from CIE L*uv color model to CIE L*ch() uv color model
|
static CIELuhColor |
cieLuh(CIELuvColor cieLuv,
WhitePoint whitePoint)
Converts a color from XYZ color space to CIE L*uv color space
|
static CIELuhColor |
cieLuh(Color color)
Converts a color to CIE L*uv color space
|
static CIELuhColor |
cieLuh(Color color,
WhitePoint whitePoint)
Converts a color to CIE L*uv color space
|
CIELuhColor |
cieLuh(WhitePoint whitePoint) |
CIELuvColor |
cieLuv() |
static CIELuvColor |
cieLuv(Color color)
Converts a color from RGB color space to CIE L*uv color space
|
static CIELuvColor |
cieLuv(Color color,
WhitePoint whitePoint)
Converts a color from RGB color space to CIE L*uv color space
|
CIELuvColor |
cieLuv(WhitePoint whitePoint) |
static CIELuvColor |
cieLuv(XYZColor xyz)
Converts a color from XYZ color space to CIE L*uv color space
|
static CIELuvColor |
cieLuv(XYZColor xyz,
WhitePoint whitePoint)
Converts a color from XYZ color space to CIE L*uv color space
|
CMYColor |
cmy() |
static CMYColor |
cmy(CMYColor cmy)
Converts a color in the CMY color model to CMY with the default CMY color
space
|
static CMYColor |
cmy(CMYColor cmy,
ColorSpace colorSpace)
Converts a color in the CMY color model to CMY with the provided color
space
|
static CMYColor |
cmy(CMYKColor cmyk)
Converts a color from CMYK color model to CMY color model, using the
default CMY color space
|
static CMYColor |
cmy(CMYKColor cmyk,
ColorSpace colorSpace)
Converts a color from CMYK color model to CMY color model, using the
provided color space
|
static CMYColor |
cmy(Color color)
Converts a color color space to CMY color model, using the default CMY
color space
|
static CMYColor |
cmy(Color color,
ColorSpace colorSpace)
Converts a color color space to CMY color model, using the provided color
space
|
CMYColor |
cmy(ColorSpace colorSpace) |
static CMYColor |
cmy(RGBColor rgb)
Converts a color from RGB color model to CMY color model, using the default
CMY color space
|
static CMYColor |
cmy(RGBColor rgb,
ColorSpace colorSpace)
Converts a color from RGB color model to CMY color model, using the
provided color space
|
CMYKColor |
cmyk() |
static CMYKColor |
cmyk(CMYColor cmy)
Converts a color from CMY color model to CMYK color model, using the
default CMYK color space
|
static CMYKColor |
cmyk(CMYColor cmy,
ColorSpace colorSpace)
Converts a color from CMY color model to CMYK color model, using the
provided color space
|
static CMYKColor |
cmyk(CMYKColor cmyk)
Converts a color in the CMYK color model to CMYK with the default CMYK
color space
|
static CMYKColor |
cmyk(CMYKColor cmyk,
ColorSpace colorSpace)
Converts a color in the CMYK color model to CMYK with the provided color
space
|
static CMYKColor |
cmyk(Color color)
Converts a color color space to CMYK color model, using the default CMYK
color space
|
static CMYKColor |
cmyk(Color color,
ColorSpace colorSpace)
Converts a color color space to CMYK color model, using the provided color
space
|
CMYKColor |
cmyk(ColorSpace colorSpace) |
static CMYKColor |
cmyk(RGBColor rgb)
Converts a color from RGB color model to CMYK color model, using the
default CMYK color space
|
static CMYKColor |
cmyk(RGBColor rgb,
ColorSpace colorSpace)
Converts a color from RGB color model to CMY color model, using the
provided color space
|
double |
getAlpha()
Get the alpha component of the color.
|
abstract ColorModel |
getColorModel()
Returns the color space of the color.
|
HSIColor |
hsi() |
static HSIColor |
hsi(Color color)
Converts a color from HSV color space to HSL color space
|
static HSIColor |
hsi(Color color,
ColorSpace colorSpace)
Converts a color from HSV color space to HSL color space
|
HSIColor |
hsi(ColorSpace colorSpace) |
static HSIColor |
hsi(RGBColor rgb)
Converts a color from HSV color space to HSL color space
|
static HSIColor |
hsi(RGBColor rgb,
ColorSpace colorSpace)
Converts a color from HSV color space to HSL color space
|
HSLColor |
hsl() |
static HSLColor |
hsl(Color color)
Converts a color from HSV color space to HSL color space
|
static HSLColor |
hsl(Color color,
ColorSpace colorSpace)
Converts a color from HSV color space to HSL color space
|
HSLColor |
hsl(ColorSpace colorSpace) |
static HSLColor |
hsl(HSVColor hsv)
Converts a color from HSV color space to HSL color space
|
static HSLColor |
hsl(HSVColor hsv,
ColorSpace colorSpace)
Converts a color from HSV color space to HSL color space
|
static HSLColor |
hsl(RGBColor rgb) |
static HSLColor |
hsl(RGBColor rgb,
ColorSpace colorSpace)
Converts a color from HSV color space to HSL color space
|
HSVColor |
hsv() |
static HSVColor |
hsv(Color color)
Converts a color to HSV color space
|
static HSVColor |
hsv(Color color,
ColorSpace colorSpace)
Converts a color to HSV color space
|
HSVColor |
hsv(ColorSpace colorSpace) |
static HSVColor |
hsv(HSLColor hsl)
Converts a color from HSL color space to HSV color space
|
static HSVColor |
hsv(HSLColor hsl,
ColorSpace colorSpace)
Converts a color from HSL color space to HSV color space
|
static HSVColor |
hsv(HWBColor hwb)
Converts a color from HWB color space to HSV color space
|
static HSVColor |
hsv(HWBColor hwb,
ColorSpace colorSpace)
Converts a color from HWB color space to HSV color space
|
static HSVColor |
hsv(RGBColor rgb)
Converts a color from HSV color space to HSL color space
|
static HSVColor |
hsv(RGBColor rgb,
ColorSpace colorSpace)
Converts a color from HSV color space to HSL color space
|
String |
htmlColor()
Converts the color to html/css string.
|
HunterLabColor |
hunterLab() |
static HunterLabColor |
hunterLab(Color color)
Converts a color from RGB color space to Hunter Lab color space
|
static HunterLabColor |
hunterLab(Color color,
WhitePoint whitePoint)
Converts a color to Hunter Lab color space
|
static HunterLabColor |
hunterLab(HunterLabColor hunterLab)
Converts a color from RGB color space to Hunter Lab color space
|
static HunterLabColor |
hunterLab(HunterLabColor hunterLab,
WhitePoint whitePoint)
Converts a color to Hunter Lab color space
|
HunterLabColor |
hunterLab(WhitePoint whitePoint) |
HWBColor |
hwb() |
static HWBColor |
hwb(Color color)
Converts a color from HSV color space to HWB color space
|
static HWBColor |
hwb(Color color,
ColorSpace colorSpace)
Converts a color from HSV color space to HWB color space
|
HWBColor |
hwb(ColorSpace colorSpace) |
static HWBColor |
hwb(HSVColor hsv)
Converts a color from HSV color space to HWB color space
|
static HWBColor |
hwb(HSVColor hsv,
ColorSpace colorSpace)
Converts a color from HSV color space to HWB color space
|
static HWBColor |
hwb(RGBColor rgb)
Converts a color from HSV color space to HWB color space
|
static HWBColor |
hwb(RGBColor rgb,
ColorSpace colorSpace)
Converts a color from HSV color space to HWB color space
|
RGBColor |
rgb() |
static RGBColor |
rgb(CMYColor cmy)
Converts a color from CMY color model to CMY color model, using the default
RGB color space
|
static RGBColor |
rgb(CMYColor cmy,
ColorSpace colorSpace)
Converts a color from CMY color model to RGB color model, using the
provided color space
|
static RGBColor |
rgb(CMYKColor cmyk)
Converts a color from CMYK color space to RGB color space
|
static RGBColor |
rgb(CMYKColor cmyk,
ColorSpace colorSpace)
Converts a color from CMYK color space to RGB color space
|
static RGBColor |
rgb(Color color)
Converts a color to RGB color space
|
static RGBColor |
rgb(Color color,
ColorSpace colorSpace)
Converts a color to RGB color space
|
RGBColor |
rgb(ColorSpace colorSpace) |
static RGBColor |
rgb(HSLColor hsl)
Converts a color from HSL color space to RGB color space
|
static RGBColor |
rgb(HSVColor hsv)
Converts a color from HSV color space to RGB color space
|
static RGBColor |
rgb(HWBColor hwb) |
RGBColor |
srgb() |
static RGBColor |
srgb(Color color)
Converts a color to SRGB color space
|
static RGBColor |
srgb(RGBColor rgb)
Converts a RGB color from any color space to SRGB color space
|
String |
toString()
Returns the color as an html/css string.
|
abstract XYZColor |
xyz() |
YxyColor |
yxy() |
static YxyColor |
yxy(Color color)
Converts a color to Yxy color model
|
static YxyColor |
yxy(XYZColor xyz)
Converts a color to Yxy color model
|
static YxyColor |
yxy(YxyColor yxy)
Converts a color to Yxy color model
|
public static final RGBColor TRANSPARENT
public static final RGBColor ALICE_BLUE
public static final RGBColor ANTIQUE_WHITE
public static final RGBColor AQUA
public static final RGBColor AQUAMARINE
public static final RGBColor AZURE
public static final RGBColor BEIGE
public static final RGBColor BISQUE
public static final RGBColor BLACK
public static final RGBColor BLANCHED_ALMOND
public static final RGBColor BLUE
public static final RGBColor BLUE_VIOLET
public static final RGBColor BROWN
public static final RGBColor BURLY_WOOD
public static final RGBColor CADET_BLUE
public static final RGBColor CHARTREUSE
public static final RGBColor CHOCOLATE
public static final RGBColor CORAL
public static final RGBColor CORNFLOWER_BLUE
public static final RGBColor CORNSILK
public static final RGBColor CRIMSON
public static final RGBColor CYAN
public static final RGBColor DARK_BLUE
public static final RGBColor DARK_CYAN
public static final RGBColor DARK_GOLDEN_ROD
public static final RGBColor DARK_GRAY
public static final RGBColor DARK_GREEN
public static final RGBColor DARK_GREY
public static final RGBColor DARK_KHAKI
public static final RGBColor DARK_MAGENTA
public static final RGBColor DARK_OLIVE_GREEN
public static final RGBColor DARK_ORANGE
public static final RGBColor DARK_ORCHID
public static final RGBColor DARK_RED
public static final RGBColor DARK_SALMON
public static final RGBColor DARK_SEA_GREEN
public static final RGBColor DARK_SLATE_BLUE
public static final RGBColor DARK_SLATE_GRAY
public static final RGBColor DARK_SLATE_GREY
public static final RGBColor DARK_TURQUOISE
public static final RGBColor DARK_VIOLET
public static final RGBColor DEEP_PINK
public static final RGBColor DEEP_SKY_BLUE
public static final RGBColor DIM_GRAY
public static final RGBColor DIM_GREY
public static final RGBColor DODGER_BLUE
public static final RGBColor FIRE_BRICK
public static final RGBColor FLORAL_WHITE
public static final RGBColor FOREST_GREEN
public static final RGBColor FUCHSIA
public static final RGBColor GAINSBORO
public static final RGBColor GHOST_WHITE
public static final RGBColor GOLD
public static final RGBColor GOLDENROD
public static final RGBColor GRAY
public static final RGBColor GREEN
public static final RGBColor GREEN_YELLOW
public static final RGBColor GREY
public static final RGBColor HONEY_DEW
public static final RGBColor HOT_PINK
public static final RGBColor INDIAN_RED
public static final RGBColor INDIGO
public static final RGBColor IVORY
public static final RGBColor KHAKI
public static final RGBColor LAVENDER
public static final RGBColor LAVENDER_BLUSH
public static final RGBColor LAWN_GREEN
public static final RGBColor LEMON_CHIFFON
public static final RGBColor LIGHT_BLUE
public static final RGBColor LIGHT_CORAL
public static final RGBColor LIGHT_CYAN
public static final RGBColor LIGHT_GOLDENROD_YELLOW
public static final RGBColor LIGHT_GRAY
public static final RGBColor LIGHT_GREEN
public static final RGBColor LIGHT_GREY
public static final RGBColor LIGHT_PINK
public static final RGBColor LIGHT_SALMON
public static final RGBColor LIGHT_SEA_GREEN
public static final RGBColor LIGHT_SKY_BLUE
public static final RGBColor LIGHT_SLATE_GRAY
public static final RGBColor LIGHT_SLATE_GREY
public static final RGBColor LIGHT_STEEL_BLUE
public static final RGBColor LIGHT_YELLOW
public static final RGBColor LIME
public static final RGBColor LIME_GREEN
public static final RGBColor LINEN
public static final RGBColor MAGENTA
public static final RGBColor MAROON
public static final RGBColor MEDIUM_AQUAMARINE
public static final RGBColor MEDIUM_BLUE
public static final RGBColor MEDIUM_ORCHID
public static final RGBColor MEDIUM_PURPLE
public static final RGBColor MEDIUM_SEA_GREEN
public static final RGBColor MEDIUM_SLATE_BLUE
public static final RGBColor MEDIUM_SPRING_GREEN
public static final RGBColor MEDIUM_TURQUOISE
public static final RGBColor MEDIUM_VIOLET_RED
public static final RGBColor MIDNIGHT_BLUE
public static final RGBColor MINT_CREAM
public static final RGBColor MISTY_ROSE
public static final RGBColor MOCCASIN
public static final RGBColor NAVAJO_WHITE
public static final RGBColor NAVY
public static final RGBColor OLD_LACE
public static final RGBColor OLIVE
public static final RGBColor OLIVE_DRAB
public static final RGBColor ORANGE
public static final RGBColor ORANGE_RED
public static final RGBColor ORCHID
public static final RGBColor PALE_GOLDENROD
public static final RGBColor PALE_GREEN
public static final RGBColor PALE_TURQUOISE
public static final RGBColor PALE_VIOLETRED
public static final RGBColor PAPAYA_WHIP
public static final RGBColor PEACH_PUFF
public static final RGBColor PERU
public static final RGBColor PINK
public static final RGBColor PLUM
public static final RGBColor POWDER_BLUE
public static final RGBColor PURPLE
public static final RGBColor REBECCA_PURPLE
public static final RGBColor RED
public static final RGBColor ROSY_BROWN
public static final RGBColor ROYAL_BLUE
public static final RGBColor SADDLE_BROWN
public static final RGBColor SALMON
public static final RGBColor SANDY_BROWN
public static final RGBColor SEA_GREEN
public static final RGBColor SEA_SHELL
public static final RGBColor SIENNA
public static final RGBColor SILVER
public static final RGBColor SKY_BLUE
public static final RGBColor SLATE_BLUE
public static final RGBColor SLATE_GRAY
public static final RGBColor SLATE_GREY
public static final RGBColor SNOW
public static final RGBColor SPRING_GREEN
public static final RGBColor STEEL_BLUE
public static final RGBColor TAN
public static final RGBColor TEAL
public static final RGBColor THISTLE
public static final RGBColor TOMATO
public static final RGBColor TURQUOISE
public static final RGBColor VIOLET
public static final RGBColor WHEAT
public static final RGBColor WHITE
public static final RGBColor WHITE_SMOKE
public static final RGBColor YELLOW
public static final RGBColor YELLOW_GREEN
protected String htmlColor
protected double alpha
public abstract ColorModel getColorModel()
public double getAlpha()
@JsMethod(name="toCIELab") public CIELabColor cieLab()
@JsMethod(name="toCIELabWithWhitePoint") public CIELabColor cieLab(WhitePoint whitePoint)
@JsMethod(name="toCIELabFromColor") public static CIELabColor cieLab(Color color)
the
- color the color to convert@JsMethod(name="toCIELabFromColorWithWhitePoint") public static CIELabColor cieLab(Color color, WhitePoint whitePoint)
color
- the color to convert@JsMethod(name="toCIELabFromCIELab") public static CIELabColor cieLab(CIELabColor cieLab)
the
- color the color to convert@JsMethod(name="toCIELabFromCIELabWithWhitePoint") public static CIELabColor cieLab(CIELabColor cieLab, WhitePoint whitePoint)
cieLab
- the color to convert@JsMethod(name="toCIELabFromXYZ") public static CIELabColor cieLab(XYZColor xyz)
xyz
- color in the XYZ color space@JsMethod(name="toCIELabFromXYZWithWhitePoint") public static CIELabColor cieLab(XYZColor xyz, WhitePoint whitePoint)
xyz
- color in the XYZ color space@JsMethod(name="toCIELch") public CIELchColor cieLch()
@JsMethod(name="toCIELchWithWhitePoint") public CIELchColor cieLch(WhitePoint whitePoint)
@JsMethod(name="toCIELchFromColor") public static CIELchColor cieLch(Color color)
color
- the color to convert@JsMethod(name="toCIELchFromColorWithWhitePoint") public static CIELchColor cieLch(Color color, WhitePoint whitePoint)
color
- the input colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELchFromXYZ") public static CIELchColor cieLch(XYZColor xyz)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELchFromXYZWithWhitePoint") public static CIELchColor cieLch(XYZColor xyz, WhitePoint whitePoint)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELchFromCIELch") public static CIELchColor cieLch(CIELchColor cieLch)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELchFromCIELchWithWhitePoint") public static CIELchColor cieLch(CIELchColor cieLch, WhitePoint whitePoint)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELchFromCIELab") public static CIELchColor cieLch(CIELabColor cieLab)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELchFromCIELabWithWhitePoint") public static CIELchColor cieLch(CIELabColor cieLab, WhitePoint whitePoint)
cieLab
- the input CIE L*ab colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELuh") public CIELuhColor cieLuh()
@JsMethod(name="toCIELuhWithWhitePoint") public CIELuhColor cieLuh(WhitePoint whitePoint)
@JsMethod(name="toCIELuhFromColor") public static CIELuhColor cieLuh(Color color)
color
- the input colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELuhFromColorWithWhitePoint") public static CIELuhColor cieLuh(Color color, WhitePoint whitePoint)
color
- the input colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELuhFromCIELuv") public static CIELuhColor cieLuh(CIELuvColor cieLuv)
cieLuv
- the input CIE L*uv color@JsMethod(name="toCIELuhFromCIELuvWithWhitePoint") public static CIELuhColor cieLuh(CIELuvColor cieLuv, WhitePoint whitePoint)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELuv") public CIELuvColor cieLuv()
@JsMethod(name="toCIELuvWithWhitePoint") public CIELuvColor cieLuv(WhitePoint whitePoint)
@JsMethod(name="toCIELuvFromColor") public static CIELuvColor cieLuv(Color color)
color
- color in the RGB color space@JsMethod(name="toCIELuvFromColorWithWhitePoint") public static CIELuvColor cieLuv(Color color, WhitePoint whitePoint)
color
- the input colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELuvFromXYZ") public static CIELuvColor cieLuv(XYZColor xyz)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCIELuvFromXYZWithWhitePoint") public static CIELuvColor cieLuv(XYZColor xyz, WhitePoint whitePoint)
rgb
- the input XYZ colorwhitePoint
- the white point of the converted color@JsMethod(name="toCMY") public CMYColor cmy()
@JsMethod(name="toCMYWithColorSpace") public CMYColor cmy(ColorSpace colorSpace)
@JsMethod(name="toCMYFromCMY") public static CMYColor cmy(CMYColor cmy)
cmy
- color in the CMY color model@JsMethod(name="toCMYFromCMYWithColorSpace") public static CMYColor cmy(CMYColor cmy, ColorSpace colorSpace)
cmy
- color in the CMY color model@JsMethod(name="toCMYFromCMYK") public static CMYColor cmy(CMYKColor cmyk)
cmyk
- color in the CMYK color model@JsMethod(name="toCMYFromCMYKWithColorSpace") public static CMYColor cmy(CMYKColor cmyk, ColorSpace colorSpace)
cmyk
- color in the CMYK color model@JsMethod(name="toCMYFromColor") public static CMYColor cmy(Color color)
color
- the color to convert@JsMethod(name="toCMYFromColorWithColorSpace") public static CMYColor cmy(Color color, ColorSpace colorSpace)
color
- the color to convert@JsMethod(name="toCMYFromRGB") public static CMYColor cmy(RGBColor rgb)
rgb
- color in the RGB color model@JsMethod(name="toCMYFromRGBWithColorSpace") public static CMYColor cmy(RGBColor rgb, ColorSpace colorSpace)
rgb
- color in the RGB color model@JsMethod(name="toCMYK") public CMYKColor cmyk()
@JsMethod(name="toCMYKWithColorSpace") public CMYKColor cmyk(ColorSpace colorSpace)
@JsMethod(name="toCMYKFromCMY") public static CMYKColor cmyk(CMYColor cmy)
cmy
- color in the CMY color model@JsMethod(name="toCMYKFromCMYWithColorSpace") public static CMYKColor cmyk(CMYColor cmy, ColorSpace colorSpace)
cmy
- color in the CMY color model@JsMethod(name="toCMYKFromCMYK") public static CMYKColor cmyk(CMYKColor cmyk)
cmyk
- color in the CMYK color model@JsMethod(name="toCMYKFromCMYKWithColorSpace") public static CMYKColor cmyk(CMYKColor cmyk, ColorSpace colorSpace)
cmyk
- color in the CMYK color model@JsMethod(name="toCMYKFromColor") public static CMYKColor cmyk(Color color)
color
- the color to convert@JsMethod(name="toCMYKFromColorWithColorSpace") public static CMYKColor cmyk(Color color, ColorSpace colorSpace)
color
- the color to convert@JsMethod(name="toCMYKFromRGB") public static CMYKColor cmyk(RGBColor rgb)
rgb
- color in the RGB color model@JsMethod(name="toCMYKFromRGBWithColorSpace") public static CMYKColor cmyk(RGBColor rgb, ColorSpace colorSpace)
rgb
- color in the RGB color model@JsMethod(name="toHSI") public HSIColor hsi()
@JsMethod(name="toHSIWithColorSpace") public HSIColor hsi(ColorSpace colorSpace)
@JsMethod(name="toHSIFromColor") public static HSIColor hsi(Color color)
color
- color to convert@JsMethod(name="toHSIFromColorWithColorSpace") public static HSIColor hsi(Color color, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="toHSIFromRGB") public static HSIColor hsi(RGBColor rgb)
hsv
- color in the HSV color space@JsMethod(name="toHSIFromRGBWithColorSpace") public static HSIColor hsi(RGBColor rgb, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="toHSL") public HSLColor hsl()
@JsMethod(name="toHSLWithColorSpace") public HSLColor hsl(ColorSpace colorSpace)
@JsMethod(name="toHSLFromColor") public static HSLColor hsl(Color color)
hsv
- color in the HSV color space@JsMethod(name="toHSLFromColorWithColorSpace") public static HSLColor hsl(Color color, ColorSpace colorSpace)
color
- color to be converted@JsMethod(name="toHSLFromHSV") public static HSLColor hsl(HSVColor hsv)
hsv
- color in the HSV color space@JsMethod(name="toHSLFromHSVWithColorSpace") public static HSLColor hsl(HSVColor hsv, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="toHSLFromRGBWithColorSpace") public static HSLColor hsl(RGBColor rgb, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="toHSV") public HSVColor hsv()
@JsMethod(name="toHSVWithColorSpace") public HSVColor hsv(ColorSpace colorSpace)
@JsMethod(name="toHSVFromColor") public static HSVColor hsv(Color color)
color
- the color to convert@JsMethod(name="toHSVFromColorWithColorSpace") public static HSVColor hsv(Color color, ColorSpace colorSpace)
color
- the color to convert@JsMethod(name="toHSVFromHSL") public static HSVColor hsv(HSLColor hsl)
hsl
- color in the HSL color space@JsMethod(name="toHSVFromHSLWithColorSpace") public static HSVColor hsv(HSLColor hsl, ColorSpace colorSpace)
hsl
- color in the HSL color space@JsMethod(name="toHSVFromHWB") public static HSVColor hsv(HWBColor hwb)
hwb
- color in the HWB color space@JsMethod(name="toHSVFromHWBWithColorSpace") public static HSVColor hsv(HWBColor hwb, ColorSpace colorSpace)
hwb
- color in the HWB color spacecolorSpace
- @JsMethod(name="toHSVFromRGB") public static HSVColor hsv(RGBColor rgb)
hsv
- color in the HSV color space@JsMethod(name="toHSVFromRGBWithColorSpace") public static HSVColor hsv(RGBColor rgb, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="toHunterLab") public HunterLabColor hunterLab()
@JsMethod(name="toHunterLabWithWhitePoint") public HunterLabColor hunterLab(WhitePoint whitePoint)
@JsMethod(name="toHunterLabFromColor") public static HunterLabColor hunterLab(Color color)
color
- color in the RGB color space@JsMethod(name="toHunterLabFromColorWithWhitePoint") public static HunterLabColor hunterLab(Color color, WhitePoint whitePoint)
color
- colorwhitePoint
- the white point of the converted color@JsMethod(name="toHunterLabFromHunterLab") public static HunterLabColor hunterLab(HunterLabColor hunterLab)
hunterLab
- color in the RGB color space@JsMethod(name="toHunterLabFromHunterLabWithWhitePoint") public static HunterLabColor hunterLab(HunterLabColor hunterLab, WhitePoint whitePoint)
hunterLab
- colorwhitePoint
- the white point of the converted color@JsMethod(name="toHWB") public HWBColor hwb()
@JsMethod(name="toHWBWithColorSpace") public HWBColor hwb(ColorSpace colorSpace)
@JsMethod(name="toHWBFromColor") public static HWBColor hwb(Color color)
hsv
- color in the HSV color space@JsMethod(name="toHWBFromColorWithColorSpace") public static HWBColor hwb(Color color, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="toHWBFromHSV") public static HWBColor hwb(HSVColor hsv)
hsv
- color in the HSV color space@JsMethod(name="toHWBFromHSVWithColorSpace") public static HWBColor hwb(HSVColor hsv, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="toHWBFromRGB") public static HWBColor hwb(RGBColor rgb)
hsv
- color in the HSV color space@JsMethod(name="toHWBFromRGBWithColorSpace") public static HWBColor hwb(RGBColor rgb, ColorSpace colorSpace)
hsv
- color in the HSV color space@JsMethod(name="asRGB") public RGBColor rgb()
@JsMethod(name="asRGBWithColorSpace") public RGBColor rgb(ColorSpace colorSpace)
@JsMethod(name="asRGBFromCMY") public static RGBColor rgb(CMYColor cmy)
cmy
- the color to convert@JsMethod(name="asRGBFromCMYWithColorSpace") public static RGBColor rgb(CMYColor cmy, ColorSpace colorSpace)
cmy
- color in the CMY color spacecolorSpace
- the target color space@JsMethod(name="asRGBFromCMYK") public static RGBColor rgb(CMYKColor cmyk)
cmyk
- color in the CMYK color space@JsMethod(name="asRGBFromCMYKWithColorSpace") public static RGBColor rgb(CMYKColor cmyk, ColorSpace colorSpace)
cmyk
- color in the CMYK color spacecolorSpace
- the target color space@JsMethod(name="asRGBFromColor") public static RGBColor rgb(Color color)
color
- the color to convert to RGB@JsMethod(name="asRGBFromColorWithColorSpace") public static RGBColor rgb(Color color, ColorSpace colorSpace)
color
- the color to convert to RGBcolorSpace
- the target color space@JsMethod(name="asRGBFromHSL") public static RGBColor rgb(HSLColor hsl)
hsl
- color in the HSL color space@JsMethod(name="asRGBFromHSV") public static RGBColor rgb(HSVColor hsv)
hsv
- color in the HSV color space@JsMethod(name="toSRGB") public RGBColor srgb()
@JsMethod(name="toSRGBFromColor") public static RGBColor srgb(Color color)
color
- the color to convert@JsMethod(name="toSRGBFromRGB") public static RGBColor srgb(RGBColor rgb)
rgb
- the rgb color to convertcolorSpace
- the target color space@JsIgnore public abstract XYZColor xyz()
@JsMethod(name="toYxy") public YxyColor yxy()
@JsMethod(name="toYxyFromColor") public static YxyColor yxy(Color color)
color
- the color to convert@JsMethod(name="toYxyFromXYZ") public static YxyColor yxy(XYZColor xyz)
xyz
- the color to convert@JsMethod(name="toYxyFromYxy") public static YxyColor yxy(YxyColor yxy)
color
- the color to convertpublic String htmlColor()
Copyright © 2018 Xalys. All rights reserved.