public class Color extends Object
| Constructor and Description |
|---|
Color(int red,
int green,
int blue) |
Color(int red,
int green,
int blue,
int alpha) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getAlpha()
Returns the alpha value in the range 0-255.
|
int |
getBlue()
Returns the blue value in the range 0-255.
|
int |
getGreen()
Returns the green value in the range 0-255.
|
int |
getRed()
Returns the red value in the range 0-255.
|
int |
getRGB()
Returns the RGB value representing the color.
|
int |
hashCode() |
public Color(int red,
int green,
int blue)
public Color(int red,
int green,
int blue,
int alpha)
public int getRGB()
public int getRed()
public int getGreen()
public int getBlue()
public int getAlpha()
Copyright © 2018. All rights reserved.