public class Color extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Color |
BLACK |
static Color |
BLUE |
static Color |
GREEN |
static Color |
RED |
static Color |
WHITE |
| Constructor and Description |
|---|
Color(double r,
double g,
double b) |
Color(int r,
int g,
int b) |
| Modifier and Type | Method and Description |
|---|---|
float |
blue() |
float |
green() |
String |
html() |
static Color |
random() |
float |
red() |
Color |
scale(float fr,
float fg,
float fb)
Returns a copy of this color the values of which are multiplied with the according factors
and cropped to 0..1.
|
String |
toString() |
public static final Color BLACK
public static final Color WHITE
public static final Color BLUE
public static final Color GREEN
public static final Color RED
public Color(int r,
int g,
int b)
public Color(double r,
double g,
double b)
public float red()
public float green()
public float blue()
public String html()
public static Color random()
public Color scale(float fr, float fg, float fb)
fr - The factor for red.fg - The factor for green.fb - The factor for blue.Copyright © 2018. All rights reserved.