Searched refs:brightness (Results 1 - 4 of 4) sorted by relevance

/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DMotifColorUtilities.java91 HI values used for high brightness (within STD)
92 LO values used for low brightness (within STD)
93 Interpolate factors between HI & LO values based on brightness */
103 static int brightness( int red, int green, int blue ) method in class:MotifColorUtilities
105 float brightness;
139 brightness = ( (intensity * XmINTENSITY_FACTOR) +
142 return Math.round(brightness);
148 int brightness = brightness(r,g,b);
150 if (brightness > XmFOREGROUND_THRESHOL
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DColor.java816 * The <code>saturation</code> and <code>brightness</code> components
831 * @param brightness the brightness of the color
833 * saturation, and brightness.
839 public static int HSBtoRGB(float hue, float saturation, float brightness) { argument
842 r = g = b = (int) (brightness * 255.0f + 0.5f);
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)));
851 r = (int) (brightness * 255.
[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.
65 private float brightness; field in class:GTKColorChooserPanel
328 setHSB(hue, saturation, brightness);
347 setHSB(hue, saturation, brightness);
358 * Sets the brightness.
360 private void setBrightness(float brightness) { argument
361 setHSB(hue, saturation, brightness);
365 * Returns the brightness.
368 return brightness;
372 * Sets the saturation and brightness an
[all...]
/openjdk7/jdk/src/share/classes/sun/font/
H A DDecoration.java308 int brightness = 33 * bg.getRed()
311 foreground = brightness > 18500 ? Color.BLACK : Color.WHITE;

Completed in 37 milliseconds