The wrkstrm
port of HSLuvSwift (revision 4), courtesy of Clay Smith
This framework adds a single initializer on the OS-specific color class to create a color from HSLuv parameters. The initializer takes the same parameters on both macOS and iOS.
// macOS
let color: NSColor = .init(hue: 360.0, saturation: 100.0, lightness: 100.0, alpha: 1.0)
// iOS
let color: UIColor = .init(hue: 360.0, saturation: 100.0, lightness: 100.0, alpha: 1.0)
- Finish HPLuv implementation
- Add usage documentation
See License