HSB
struct HSB : Hashable
The HSB (hue, saturation, brightness) components of a color.
-
The hue component of the color, in the range [0, 360°].
Declaration
Swift
public var hue: CGFloat -
The saturation component of the color, in the range [0, 100%].
Declaration
Swift
public var saturation: CGFloat -
The brightness component of the color, in the range [0, 100%].
Declaration
Swift
public var brightness: CGFloat -
Initializes the HSB (hue, saturation, brightness) components of a color.
Declaration
Swift
public init(hue: CGFloat, saturation: CGFloat, brightness: CGFloat)Parameters
hueThe hue component of the color, in the range [0, 360°].
saturationThe saturation component of the color, in the range [0, 100%].
brightnessThe brightness component of the color, in the range [0, 100%].
View on GitHub
HSB Structure Reference