ColorSpace

enum ColorSpace

Represents a supported color space for random color generation.

  • The gray color space.

    Declaration

    Swift

    case gray
  • hsb

    The HSB (Hue Saturation Brightness) color space.

    Declaration

    Swift

    case hsb
  • rgb

    The RGB (Red Green Blue) color space.

    Declaration

    Swift

    case rgb

Public Functions

  • Returns the default color space.

    Declaration

    Swift

    public static func `default`() -> ColorSpace

    Return Value

    The default color space