Skip to content

ngs/color-hash.swift

Repository files navigation

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

About

Generates UIColor and NSColor from given string.

Resources

License

Stars

Watchers

Forks

Packages

No packages published