Lorikeet alternatives and similar libraries
Based on the "Color" category.
Alternatively, view Lorikeet 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). -
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
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 Lorikeet or a related project?
README
Lorikeet
Lightweight framework for generating visually aesthetic color-schemes in Swift
Requirements
- UIKit
Features
What can Lorikeet do for you
- Calculate visual color difference (wikipedia)
- Algorithms:
- CIE76
- CIE94
- CIE2000
- Algorithms:
- Generate color schemes
Installation
Carthage
In your Cartfile
put:
github "valdirunars/Lorikeet"
CocoaPods
In you Podfile
pod 'Lorikeet'
Manual
Copy the ./Lorikeet
folder ๐๐
How to Use
Basic Usage
let red: UIColor = .red
let label = UILabel()
label.backgroundColor = red
// Assign a maximum contrasting color as foreground color
label.textColor = red.lkt.complimentaryColor
// Visual color difference
let distance: Float = red.distance(to: .blue, algorithm: .cie2000)
// Generate color scheme
red.lkt.generateColorScheme(numberOfColors: 40) { colors in
print(colors)
}
Advanced
Lorikeet's Algorithm
enum has two cases for advanced usage:
.advancedCIE94(l: Float, c: Float, h: Float, k1: Float, k2: Float)
.advancedCIE2000(l: Float, c: Float, h: Float)
Example:
let l: Float = 0.8
let c: Float = 0.9
let h: Float = 1.0
red.lkt.generateColorScheme(numberOfColors: 40,
using: .advancedCIE2000(l: l, c: c, h: h)) { colors in
print(colors)
}
let range = HSVRange(hueRange: (0, 1),
saturationRange: (0.5, 0.5),
brightnessRange: (0.95, 0.95))
color.lkt.generateColorScheme(numberOfColors: 15,
withRange: range,
using: .cie2000) {
colors in
}
Screenshots
Making text readable using random colors:
let label = UILabel(frame: frame)
self.view.backgroundColor = UIColor(hue: 180/360.0,
saturation: 0.5,
brightness: 0.6,
alpha: 1)
label.backgroundColor = self.view
.backgroundColor!
.lkt
.generateRandomMatchingColor()
label.textColor = label.backgroundColor!
.lkt
.complimentaryColor
Generating colors:
let color: UIColor = UIColor(red: 245/255.0, green: 110/255.0, blue: 100/255.0, alpha: 1)
color.lkt.generateColorScheme(numberOfColors: 10)
*Note that all licence references and agreements mentioned in the Lorikeet README section above
are relevant to that project's source code only.