public class Color extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Color()
Initializes a new instance of the
Color class. |
|
Color(int red,
int green,
int blue)
Initializes a new instance of the
Color class. |
|
Color(int alpha,
int red,
int green,
int blue)
Initializes a new instance of the
Color class. |
|
Color(Object data)
Initializes a new instance of the
Color class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getAlpha()
Gets the alpha component value of this instance.
|
int |
getBlue()
Gets the blue component value of this instance.
|
Object |
getCore() |
int |
getGreen()
Gets the green component value of this instance.
|
int |
getRed()
Gets the red component value of this instance.
|
String |
toString()
Returns a
String that represents the current Color. |
protected Color()
Color class.public Color(int red,
int green,
int blue)
Color class.red - The red component from 0 to 255.green - The green component from 0 to 255.blue - The blue component from 0 to 255.public Color(int alpha,
int red,
int green,
int blue)
Color class.alpha - The alpha component from 0 to 255.red - The red component from 0 to 255.green - The green component from 0 to 255.blue - The blue component from 0 to 255.public Color(Object data)
Color class.data - The serialized data.public int getAlpha()
public int getBlue()
public Object getCore()
public int getGreen()
public int getRed()
Copyright © 2026. All rights reserved.