public class RGBColor extends Object
| Constructor and Description |
|---|
RGBColor() |
| Modifier and Type | Method and Description |
|---|---|
static String |
gray() |
static String |
percentToColor(double percent)
Returns a String representation of a color (in the form
"rgb(XXX, YYY, ZZZ)").
|
String |
returnRGB() |
static String |
returnRGBString(int red,
int green,
int blue) |
boolean |
setRGB(int newRed,
int newGreen,
int newBlue) |
public boolean setRGB(int newRed,
int newGreen,
int newBlue)
public static String gray()
public String returnRGB()
public static String returnRGBString(int red, int green, int blue)
public static String percentToColor(double percent)
percent - Percent value [0, 1].Copyright © 2021. All rights reserved.