public class PickerColor
extends java.lang.Object
ColorPickerFolderNode
Modifier and Type | Field and Description |
---|---|
float |
alpha
Alpha in range of [0,1]
|
float |
brightness
Brightness in range of [0,1]
|
int |
hex
Integer representation of a processing hex color.
|
float |
hue
Hue in range of [0,1]
|
float |
saturation
Saturation in range of [0,1]
|
Constructor and Description |
---|
PickerColor(int hex)
Utility constructor that gets all the other HSB color data from the hex int color,
but this can be CPU intensive when done too much.
|
PickerColor(int hex,
float hue,
float sat,
float br,
float alpha)
Simple constructor that just assigns the parameters into the corresponding fields.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public final int hex
public final float hue
public final float saturation
public final float brightness
public final float alpha
public PickerColor(int hex, float hue, float sat, float br, float alpha)
hex
- processing int colorhue
- hue in range of [0,1]sat
- saturation in range of [0,1]br
- brightness in range of [0,1]alpha
- alpha in range of [0,1]public PickerColor(int hex)
hex
- processing integer color to parse as HSBA