@JsType(namespace="xgl.color") public class RGBColor extends ColorSpaceDefined
Modifier and Type | Class and Description |
---|---|
static class |
RGBColor.HtmlForm |
Modifier and Type | Field and Description |
---|---|
static ColorModel |
COLOR_MODEL |
static ColorSpace |
DEFAULT_COLOR_SPACE |
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 |
---|
RGBColor(Color color) |
RGBColor(Color color,
ColorSpace colorSpace) |
RGBColor(Color color,
double alpha) |
RGBColor(Color color,
double alpha,
ColorSpace colorSpace) |
RGBColor(double red,
double green,
double blue) |
RGBColor(double red,
double green,
double blue,
ColorSpace rgbColorSpace) |
RGBColor(double red,
double green,
double blue,
double alpha) |
RGBColor(double red,
double green,
double blue,
double alpha,
ColorSpace colorSpace) |
RGBColor(int red,
int green,
int blue) |
RGBColor(int red,
int green,
int blue,
ColorSpace rgbColorSpace) |
RGBColor(int red,
int green,
int blue,
double alpha) |
RGBColor(int red,
int green,
int blue,
double alpha,
ColorSpace colorSpace) |
Modifier and Type | Method and Description |
---|---|
double |
getBlue() |
ColorModel |
getColorModel()
Returns the color space of the color.
|
ColorSpace |
getDefaultColorSpace() |
int |
getEightBitsBlue()
Get the blue component of the color in the RGB/RGBA Color space.
|
int |
getEightBitsGreen()
Get the green component of the color in the RGB/RGBA Color space.
|
int |
getEightBitsRed()
Get the red component of the color in the RGB/RGBA Color space.
|
double |
getGreen() |
RGBColor.HtmlForm |
getHtmlForm(boolean withAlpha) |
double |
getRed() |
String |
htmlColor()
Converts the color to html/css string.
|
void |
setHtmlForm(RGBColor.HtmlForm htmlForm,
boolean withAlpha) |
XYZColor |
xyz() |
getColorSpace
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, 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 ColorSpace DEFAULT_COLOR_SPACE
@JsIgnore public RGBColor(int red, int green, int blue)
@JsIgnore public RGBColor(int red, int green, int blue, ColorSpace rgbColorSpace)
@JsIgnore public RGBColor(double red, double green, double blue)
@JsIgnore public RGBColor(double red, double green, double blue, ColorSpace rgbColorSpace)
@JsIgnore public RGBColor(Color color)
@JsIgnore public RGBColor(Color color, ColorSpace colorSpace)
color
- colorSpace
- @JsIgnore public RGBColor(int red, int green, int blue, double alpha)
@JsIgnore public RGBColor(int red, int green, int blue, double alpha, ColorSpace colorSpace)
@JsIgnore public RGBColor(double red, double green, double blue, double alpha)
@JsIgnore public RGBColor(double red, double green, double blue, double alpha, ColorSpace colorSpace)
@JsIgnore public RGBColor(Color color, double alpha)
@JsIgnore public RGBColor(Color color, double alpha, ColorSpace colorSpace)
color
- colorSpace
- public int getEightBitsRed()
public int getEightBitsGreen()
public int getEightBitsBlue()
public double getRed()
public double getGreen()
public double getBlue()
public ColorModel getColorModel()
Color
getColorModel
in class Color
public ColorSpace getDefaultColorSpace()
getDefaultColorSpace
in class ColorSpaceDefined
public RGBColor.HtmlForm getHtmlForm(boolean withAlpha)
public void setHtmlForm(RGBColor.HtmlForm htmlForm, boolean withAlpha)
public String htmlColor()
Color
Copyright © 2018 Xalys. All rights reserved.