Instance Method

getHue(_:saturation:brightness:alpha:)

Returns the receiver’s HSB component and opacity values in the respective arguments.

Declaration

Parameters

hue

Upon return, contains the hue component of the color object.

saturation

Upon return, contains the saturation component of the color object.

brightness

Upon return, contains the brightness component of the color object.

alpha

Upon return, contains the opacity value of the color object.

Discussion

If NULL is passed in as an argument, the method doesn’t set that value. This method works only with objects representing colors in the calibratedRGB or deviceRGB color space. Sending it to other objects raises an exception.

See Also