Contents

getHue(_:saturation:brightness:alpha:)

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

Declaration

func getHue(_ hue: UnsafeMutablePointer<CGFloat>?, saturation: UnsafeMutablePointer<CGFloat>?, brightness: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?)

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

Related Documentation

Retrieving component values from color objects