public final class Color extends Object
Modifier and Type | Method and Description |
---|---|
static Color |
rgba(int red,
int green,
int blue,
double alpha)
Create color from its individual components.
|
String |
toString() |
static Color |
valueOf(String color)
Specify color as a string.
|
public static Color rgba(int red, int green, int blue, double alpha)
red
- 0-255 value for redgreen
- 0-255 value for greenblue
- 0-255 value for bluealpha
- transparency from 0.0 to 1.0public static Color valueOf(String color)
color
- string representing the color as used in HTML5 specificationCopyright © 2017. All rights reserved.