A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/javase/8/docs/api/java/awt/Color.html below:

Color (Java Platform SE 8 )

Modifier and Type Method Description Color brighter()

Creates a new Color that is a brighter version of this Color.

PaintContext createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)

Creates and returns a

PaintContext

used to generate a solid color field pattern.

Color darker()

Creates a new Color that is a darker version of this Color.

static Color decode(String nm)

Converts a String to an integer and returns the specified opaque Color.

boolean equals(Object obj)

Determines whether another object is equal to this Color.

int getAlpha()

Returns the alpha component in the range 0-255.

int getBlue()

Returns the blue component in the range 0-255 in the default sRGB space.

static Color getColor(String nm)

Finds a color in the system properties.

static Color getColor(String nm, Color v)

Finds a color in the system properties.

static Color getColor(String nm, int v)

Finds a color in the system properties.

float[] getColorComponents(ColorSpace cspace, float[] compArray)

Returns a float array containing only the color components of the Color in the ColorSpace specified by the cspace parameter.

float[] getColorComponents(float[] compArray)

Returns a float array containing only the color components of the Color, in the ColorSpace of the Color.

ColorSpace getColorSpace()

Returns the ColorSpace of this Color.

float[] getComponents(ColorSpace cspace, float[] compArray)

Returns a float array containing the color and alpha components of the Color, in the ColorSpace specified by the cspace parameter.

float[] getComponents(float[] compArray)

Returns a float array containing the color and alpha components of the Color, in the ColorSpace of the Color.

int getGreen()

Returns the green component in the range 0-255 in the default sRGB space.

static Color getHSBColor(float h, float s, float b)

Creates a Color object based on the specified values for the HSB color model.

int getRed()

Returns the red component in the range 0-255 in the default sRGB space.

int getRGB()

Returns the RGB value representing the color in the default sRGB

ColorModel

.

float[] getRGBColorComponents(float[] compArray)

Returns a float array containing only the color components of the Color, in the default sRGB color space.

float[] getRGBComponents(float[] compArray)

Returns a float array containing the color and alpha components of the Color, as represented in the default sRGB color space.

int getTransparency()

Returns the transparency mode for this Color.

int hashCode()

Computes the hash code for this Color.

static int HSBtoRGB(float hue, float saturation, float brightness)

Converts the components of a color, as specified by the HSB model, to an equivalent set of values for the default RGB model.

static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals)

Converts the components of a color, as specified by the default RGB model, to an equivalent set of values for hue, saturation, and brightness that are the three components of the HSB model.

String toString()

Returns a string representation of this Color.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4