Generates UIColor and NSColor from given string.
Swift Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ColorHash.xcodeproj
ColorHash
ColorHashDemo-iOS
ColorHashDemo-tvOS
ColorHashDemo-watchOS Extension
ColorHashDemo-watchOS
ColorHashDemo
.gitignore
ColorHash.podspec
LICENSE
README.md
screen.gif

README.md

Color Hash Swift

This is a Swift port of Color Hash.

Generates UIColor and NSColor from given string.

import ColorHash

let str = "こんにちは、世界"
let saturation = CGFloat(0.30)
let lightness = CGFloat(0.70)

ColorHash(str, [saturation], [lightness]).color

Screen

Install

CocoaPods

pod 'ColorHash'

Carthage

github 'ngs/color-hash.swift'

Author

Atsushi NAGASE

License

See LICENSE