Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lbrndnr/spectral
A µframework that adds hex support to UIColor/NSColor
https://github.com/lbrndnr/spectral
Last synced: about 2 months ago
JSON representation
A µframework that adds hex support to UIColor/NSColor
- Host: GitHub
- URL: https://github.com/lbrndnr/spectral
- Owner: lbrndnr
- License: mit
- Created: 2015-06-27T13:55:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-20T08:02:44.000Z (over 7 years ago)
- Last Synced: 2024-10-31T15:59:17.027Z (2 months ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spectral
[![Twitter: @lbrndnr](https://img.shields.io/badge/[email protected]?style=flat)](https://twitter.com/lbrndnr)
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/lbrndnr/ImagePickerSheetController/blob/master/LICENSE)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)## About
Spectral is a µframework that adds hex support to UIColor/NSColor.You can use it as follows:
```swift
let color = UIColor(hex: 0xFFFFFF)
let value = color.hexValue
```## Installation
### CocoaPods
```ruby
pod "Spectral", "~> 0.0.2"
```###Carthage
```objc
github "lbrndnr/Spectral" ~> 0.0.2
```## Author
I'm Laurin Brandner, I'm on [Twitter](https://twitter.com/larcus94).## License
Spectral is licensed under the [MIT License](http://opensource.org/licenses/mit-license.php).