|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHSV
public class HSV
An instance is an immutable HSV value. If d is an HSV object, then d.h, d.s, and d.v are its h, s, and v values. But they cannot be changed.
Field Summary | |
---|---|
double |
h
The hue. |
double |
s
The saturation. |
double |
v
The value. |
Constructor Summary | |
---|---|
HSV(double h,
double s,
double v)
Constructor: the HSV triple (h mod 360, s, v) Precondition: 0 <= h, 0 <= s <= 1, 0 <= v <= 1. |
Method Summary | |
---|---|
Color |
HSVtoRGB()
= this color in RGB color space formulae from http://en.wikipedia.org/wiki/HSV_color_space |
static HSV |
RGBtoHSV(Color rgb)
= color rgb in HSV color space. |
String |
toString()
= a representation of this HSV value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final double h
public final double s
public final double v
Constructor Detail |
---|
public HSV(double h, double s, double v)
Method Detail |
---|
public String toString()
toString
in class Object
public Color HSVtoRGB()
public static HSV RGBtoHSV(Color rgb)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |