Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Jan0707/SwiftColorArt
https://github.com/Jan0707/SwiftColorArt
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/Jan0707/SwiftColorArt
- Owner: Jan0707
- License: mit
- Created: 2015-01-06T23:22:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-27T23:05:14.000Z (about 8 years ago)
- Last Synced: 2024-08-01T19:31:32.543Z (3 months ago)
- Language: Swift
- Homepage: https://www.jangregor.me/site/blog/2
- Size: 33.4 MB
- Stars: 263
- Watchers: 17
- Forks: 26
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-cn - SwiftColorArt - font schema generator according image colours. (Libs / Images)
README
# SwiftColorArt
SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image (similiar to what iTunes does).
This work is inspired by a lot of previous work from other people. It is also my first Swift project. [You can read the whole story here](https://www.jangregor.me/site/blog/2)
Usage is pretty simple and always yields a result (fallback colors are included)
**For now please use the convinience init method until the class is stable.**
var swiftColorArt:SwiftColorArt = SwiftColorArt(inputImage: image)
self.view.backgroundColor = swiftColorArt.backgroundColor!
self.primaryColorLabel.textColor = swiftColorArt.primaryColor!
self.secondaryColorLabel.textColor = swiftColorArt.secondaryColor!
self.detailColorLabel.textColor = swiftColorArt.detailColor!![Screenshot](https://www.jangregor.me/site/storage/Blog/SwiftColorArtRelease.png)
**Please note that this is a work in progress performance and memory footprint need major improments and additional features will also be implemented in the future. Feel free to post issues or create pull requests.**