NSColor

  • Initialize a new NSColor from a given hex value.

    Declaration

    Swift

    convenience init(withRGB rgb: Int)

    Parameters

    rgb

    RGB value, easily provided as hex, e.g. 0xAABBCC