getHue(_:saturation:brightness:alpha:)
Returns the components that form the color in the HSB color space.
Declaration
func getHue(_ hue: UnsafeMutablePointer<CGFloat>?, saturation: UnsafeMutablePointer<CGFloat>?, brightness: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> BoolParameters
- hue:
On return, the hue component of the color object. On applications linked for iOS 10 or later, an extended range color space specifies the hue component and can have any value. Values between
0.0and1.0are inside the sRGB color gamut. On earlier versions of iOS, the specified value is always between0.0and1.0. - saturation:
On return, the saturation component of the color object. On applications linked for iOS 10 or later, an extended range color space specifies and can have any value. Values between
0.0and1.0are inside the sRGB color gamut. On earlier versions of iOS, the specified value is always between0.0and1.0. - brightness:
On return, the brightness component of the color object. On applications linked for iOS 10 or later, an extended range color space specifies the brightness component and can have any value. Values between
0.0and1.0are inside the sRGB color gamut. On earlier versions of iOS, the specified value is always between0.0and1.0. - alpha:
On return, the opacity component of the color object, specified as a value between
0.0and1.0.
Return Value
Discussion
If the color is in a compatible color space, it converts into the HSB color space, and its components return to your application. If the color isn’t in a compatible color space, the parameters don’t change.