WrkstrmColor

main

A generic implementation of HSLuv.
wrkstrm/WrkstrmColor

WrkstrmColor

wrkstrm-color

MIT License

The wrkstrm port of HSLuvSwift (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 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)

TODO

  • Finish HPLuv implementation
  • Add usage documentation

License

See License

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Nov 11 2024 16:16:19 GMT-1000 (Hawaii-Aleutian Standard Time)