Searched defs:saturation (Results 1 - 2 of 2) sorted by relevance

/openjdk7/jdk/src/share/classes/java/awt/
H A DColor.java816 * The <code>saturation</code> and <code>brightness</code> components
830 * @param saturation the saturation of the color
833 * saturation, and brightness.
839 public static int HSBtoRGB(float hue, float saturation, float brightness) { argument
841 if (saturation == 0) {
846 float p = brightness * (1.0f - saturation);
847 float q = brightness * (1.0f - saturation * f);
848 float t = brightness * (1.0f - (saturation * (1.0f - f)));
887 * model, to an equivalent set of values for hue, saturation, an
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/
H A DGTKColorChooserPanel.java37 * hue and a triangle that varies saturation and brightness.
64 private float saturation; field in class:GTKColorChooserPanel
205 add(this, "GTKColorChooserPanel.saturation", saturationSpinner, -1,-1);
328 setHSB(hue, saturation, brightness);
344 * Resets the saturation.
346 private void setSaturation(float saturation) { argument
347 setHSB(hue, saturation, brightness);
351 * Returns the saturation.
354 return saturation;
361 setHSB(hue, saturation, brightnes
[all...]

Completed in 641 milliseconds