If the hsbvals
argument is null
, then a new array is allocated to return the result. Otherwise, the method returns the array hsbvals
, with the values put into that array.
@param r the red component of the color
@param g the green component of the color
@param b the blue component of the color
@param hsbvals the array used to return the three HSB values, or null
@return an array of three elements containing the hue, saturation, and brightness (in that order), of the color with the indicated red, green, and blue components.
@see java.awt.Color#getRGB()
@see java.awt.Color#Color(int)
@see java.awt.image.ColorModel#getRGBdefault()
@since JDK1.0
|
|