public class RGBColor extends ExtendedColor
MAX_COLOR_VALUE, MAX_FLOAT_COLOR_VALUE, MAX_INT_COLOR_VALUE, type, TYPE_CMYK, TYPE_GRAY, TYPE_PATTERN, TYPE_RGB, TYPE_SEPARATION, TYPE_SHADINGblack, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOWBITMASK, OPAQUE, TRANSLUCENT| Constructor and Description |
|---|
RGBColor(float floatRed,
float floatGreen,
float floatBlue)
Construct a RGB Color (values are floats from 0 to 1).
|
RGBColor(float floatRed,
float floatGreen,
float floatBlue,
float floatAlpha)
Construct a RGB Color (values are floats from 0 to 1).
|
RGBColor(int intRed,
int intGreen,
int intBlue)
Constructs a RGB Color based on 3 color values (values are integers from 0 to 255).
|
RGBColor(int intRed,
int intGreen,
int intBlue,
int intAlpha)
Constructs a RGB Color based on 3 color values (values are integers from 0 to 255).
|
getType, getTypebrighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toStringpublic RGBColor(int intRed,
int intGreen,
int intBlue)
intRed - intGreen - intBlue - public RGBColor(int intRed,
int intGreen,
int intBlue,
int intAlpha)
intRed - intGreen - intBlue - intAlpha - public RGBColor(float floatRed,
float floatGreen,
float floatBlue)
floatRed - floatGreen - floatBlue - public RGBColor(float floatRed,
float floatGreen,
float floatBlue,
float floatAlpha)
floatRed - floatGreen - floatBlue - floatAlpha - Copyright © 2020. All rights reserved.