PFColorHash alternatives and similar libraries
Based on the "Color" category.
Alternatively, view PFColorHash alternatives based on common mentions on social networks and blogs.
-
Chameleon
Color framework for Swift & Objective-C (Gradient colors, hexcode support, colors from images & more). -
DKNightVersion
Manage Colors, Integrate Night/Multiple Themes -
Hue
:art: Hue is the all-in-one coloring utility that you'll ever need. -
Colours
A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier. -
DynamicColor
Yet another extension to manipulate colors easily in Swift and SwiftUI -
UIColor-Hex-Swift
Convenience methods for creating color using RGBA hex string. -
SwiftHEXColors
HEX color handling as an extension for UIColor. -
ChromaColorPicker
:art: An intuitive iOS color picker built in Swift. -
RandomColorSwift
An attractive color generator for Swift. Ported from randomColor.js. -
Crayons
An Xcode plugin to improve dealing with colors in your project -
Gestalt
An unintrusive & light-weight iOS app-theming library with support for animated theme switching. -
PrettyColors
Styles and colors text in the Terminal with ANSI escape codes. Conforms to ECMA Standard 48. -
SwiftColorGen
A tool that generate code for Swift projects, designed to improve the maintainability of UIColors -
Colorify
Simple, yet powerful color library that includes latest and most trendy colors from 2017. -
XcodeColorSense
:balloon: An Xcode plugin that makes working with color easier -
CSS3ColorsSwift
A UIColor extension with CSS3 Color names.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of PFColorHash or a related project?
README
PFColorHash
Swift 4.0 SUPPORT!
Generate color based on the given string. Thanks to color-hash.
[Sample](Sample.gif)
Usage
Basic
let colorHash = PFColorHash()
// in HSL, Hue ∈ [0, 360), Saturation ∈ [0, 1], Lightness ∈ [0, 1]
colorHash.hsl('Hello World') // [ 225, 0.65, 0.35 ]
// in RGB, R, G, B ∈ [0, 255]
colorHash.rgb('Hello World') // [ 134, 150, 196 ]
// in HEX
colorHash.hex('Hello World') // '#8696c4'
Custom Hash Function / Lightness / Saturation
let colorHash = PFColorHash(hash: { (str: String) -> Int64 in
var hashValue: Int64 = 0
// Your Hash Function Here
return hashValue
})
let colorHash = PFColorHash(lightness: [0.35, 0.5, 0.65])
let colorHash = PFColorHash(saturation: [0.35, 0.5, 0.65])
let colorHash = PFColorHash(lightness: [0.35, 0.5, 0.65], saturation: [0.35, 0.5, 0.65])
License
Released under the MIT License.
*Note that all licence references and agreements mentioned in the PFColorHash README section above
are relevant to that project's source code only.