Skip to content

µ Library for hex-code RGB color conversion to NSColor

License

Notifications You must be signed in to change notification settings

CleanCocoa/ColorHexRGB

Repository files navigation

ColorHexRGB

Swift 4.2 Swift 5.x Version License Platform Carthage compatible

A very simple one-file drop in to convert NSColor to RGB-hex Strings and back.

  • NSColor.init?(hexString:) converts RGB, RRGGBB, or AARRGGBB formats to colors.
  • NSColor.rgbString and NSColor.argbString do it the other way around.

Used to read color hex strings from theme files and CSS.

License

Copyright (c) 2018--2020 Christian Tietze. Distributed under the MIT License.

About

µ Library for hex-code RGB color conversion to NSColor

Resources

License

Stars

Watchers

Forks

Packages

No packages published