HUSLSwift 1.2.0

HUSLSwift 1.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2015
SPMSupports SPM

Maintained by Clay Smith.



HUSLSwift 1.2.0

  • By
  • Clay Smith and Alexei Boronine

HUSLSwift

Swift port of HUSL (revision 4), courtesy of Clay Smith

Explanation, demo, ports etc.

USAGE

This framework adds a single initializer on the OS-specific color class to create a color from HUSL parameters. The initializer takes the same parameters on both OSX and iOS.

// OSX
let color = NSColor(hue: 360.0, saturation: 100.0, lightness: l00.0, alpha: 1.0)

// iOS
let color = UIColor(hue: 360.0, saturation: 100.0, lightness: l00.0, alpha: 1.0)

INSTALL

This project is compatible with Cocoapods and Carthage. (These instructions assume that your chosen method is already installed.)

TODO

  • Finish HUSLP implementation
  • Improve tests and add continuous integration testing
  • Add Carthage instructions
  • Add usage documentation

License

See License