public class Color
extends java.lang.Object
Constructor and Description |
---|
Color(java.lang.Integer kelvin,
java.lang.Integer brightness) |
Color(java.lang.Integer hue,
java.lang.Integer saturation,
java.lang.Integer brightness)
Constructor.
|
Color(java.lang.String s)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBrightness()
Returns the brightness of the color.
|
java.lang.Integer |
getColorTemperature()
Returns the color temperature of the color.
|
int |
getHue()
Returns the hue of the color.
|
int |
getSaturation()
Returns the saturation of the color.
|
boolean |
isColor() |
boolean |
isColorTemperature() |
java.lang.String |
toString() |
public Color(java.lang.Integer hue, java.lang.Integer saturation, java.lang.Integer brightness)
hue
- the color's hue value (0-360 degrees)saturation
- the color's saturation value (0-100 percent)brightness
- the color's brightness value (0-100 percent)public Color(java.lang.Integer kelvin, java.lang.Integer brightness)
public Color(java.lang.String s)
s
- the result of a previous Color.toString()public int getHue()
public int getSaturation()
public int getBrightness()
public java.lang.Integer getColorTemperature()
public boolean isColor()
public boolean isColorTemperature()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 Whizzo Software LLC. All rights reserved.