All Projects → melloskitten → pikko

melloskitten / pikko

Licence: MIT license
Color picker for iOS made with ❤️

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to pikko

Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+697.06%)
Mutual labels:  color-picker, colors, colorpicker
global-color-picker
start the script and click anywhere to get rgb value at the cursor location
Stars: ✭ 31 (-8.82%)
Mutual labels:  color-picker, colors, colorpicker
Shards Dashboard Vue
A free Vue admin dashboard template pack featuring a modern design system and lots of custom templates and components.
Stars: ✭ 363 (+967.65%)
Mutual labels:  ux, uikit
Panelkit
PanelKit is a UI framework that enables panels on iOS. A panel can be presented in the following ways:
Stars: ✭ 3,835 (+11179.41%)
Mutual labels:  ux, uikit
Overlap
Tiny iOS library to achieve overlap visual effect
Stars: ✭ 133 (+291.18%)
Mutual labels:  ux, uikit
Androidphotoshopcolorpicker
A fully featured Color picker Library for Android
Stars: ✭ 220 (+547.06%)
Mutual labels:  color-picker, colors
Downloadbutton
Customizable App Store style download button
Stars: ✭ 1,532 (+4405.88%)
Mutual labels:  cocoapod, uikit
Uikit Playground
Blog posts about things I learned over the years working with UIKit and accompanying sample code.
Stars: ✭ 95 (+179.41%)
Mutual labels:  ux, uikit
Leonardo
Generate colors based on a desired contrast ratio
Stars: ✭ 973 (+2761.76%)
Mutual labels:  color-picker, colors
UIImageColorRatio
A tool to calculate the color ratio of UIImage in iOS.
Stars: ✭ 34 (+0%)
Mutual labels:  colors, uicolor
Colora
Color converter, screen color picker and color palettes for Windows
Stars: ✭ 32 (-5.88%)
Mutual labels:  colors, colorpicker
trace-cocoa-sdk
Catch bugs before they reach production — get detailed crash reports and monitor how your app is performing across the entire install base.
Stars: ✭ 15 (-55.88%)
Mutual labels:  cocoapod, uikit
React Colorpickr
A themeable colorpicker with HSL and RGB support for React
Stars: ✭ 180 (+429.41%)
Mutual labels:  color-picker, colorpicker
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+3873.53%)
Mutual labels:  color-picker, colorpicker
awesome-neumorphism
A curated list of awesome Neumorphism resources.
Stars: ✭ 15 (-55.88%)
Mutual labels:  ux, uikit
Colorpickerview
🎨 Android colorpicker for getting colors from any images by tapping on the desired color.
Stars: ✭ 1,042 (+2964.71%)
Mutual labels:  color-picker, colorpicker
Peel Off Animation Example Code
Example code for https://robb.is/working-on/a-peel-off-animation
Stars: ✭ 37 (+8.82%)
Mutual labels:  ux, uikit
meazure
Screen magnification, measurement, capture and color sampling for Windows.
Stars: ✭ 55 (+61.76%)
Mutual labels:  color-picker, colorpicker
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+2152.94%)
Mutual labels:  color-picker, colorpicker
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-52.94%)
Mutual labels:  color-picker, colorpicker

Pikko - iOS color picker made with ❤️

CI Status Version License Platform

Demo of pikko color picker

Pikko is a simple and beautiful color picker for iOS. It's inspired by conventional color pickers from popular graphics tools such as Photoshop, Paint Tool Sai, Procreate and many others. Pikko allows the selection of hue, saturation and brightness in a more pleasant way than boring sliders.

Feel free to use, modify and improve. ✌️

Quickstart

To run the example project, clone the repo, and run pod install from the Example directory first.

Initializing Pikko programmatically, without autoconstraints

You can intialize a new color picker in the following way:

// Initialize a new Pikko instance with width and height set to 300, and initialized to blue.
let pikko = Pikko(dimension: 300, setToColor: .blue)

Make sure to set the Pikko delegate to get updates on color changes:

// Set the PikkoDelegate to get notified on new color changes.
pikko.delegate = self

Positioning Pikko:

// Set Pikko center and add it to the main view.
pikko.center = self.view.center
self.view.addSubview(pikko)

Manually getting a color from Pikko and setting a color:

// Getting Pikko color.
let color = pikko.getColor()

// Setting Pikko to a specific color.
pikko.setColor(.blue)

Initializing Pikko programmatically, with autoconstraints

// Initialize a new Pikko instance.
let pikko = Pikko(dimension: 300, setToColor: .purple)

// Set the PikkoDelegate to get notified on new color changes.
pikko.delegate = self

// Set Pikko center and add it to the main view.
self.view.addSubview(pikko)

// Get the current color.
_ = pikko.getColor()

// Set autoconstraints.
pikko.translatesAutoresizingMaskIntoConstraints = false
pikko.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
pikko.centerYAnchor.constraint(equalTo: self.view.centerYAnchor, constant: -200).isActive = true

Initializing Pikko via Storyboard

Add a UIView to your Storyboard, then simply select Pikko as the class. You can add autoconstraints in the interface builder normally as you would with any other view.

NOTE: If you're using Pikko in the storyboard, you have to set the delegate and color in the viewDidAppear or viewWillAppear methods.

@IBOutlet weak var PikkoView: Pikko!

/// If you add Pikko via interface builder and you want to set
/// a color on your picker or set the delegate, make sure to 
/// call it from this method, NOT the viewDidLoad.
override func viewDidAppear(_ animated: Bool) {
    PikkoView.delegate = self
    PikkoView.setColor(.purple)
}

Note

Regardless how you are initializing Pikko, you will have to implement the PikkoDelegate protocol accordingly, which will look like something along these lines:

class ViewController: UIViewController, PikkoDelegate {
...

// Delegate method that lets you get updates on the currently
// selected color.
func writeBackColor(color: UIColor) {
    // TODO: Handle received color. 
}

Installation

CocoaPods

Pikko is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Pikko'

Swift Package Manager

You can also install Pikko via the Swift Package Manager. For this, follow the Apple tutorial on how to add custom packages, with this repository link as the package Git URL:

https://github.com/melloskitten/pikko

Authors

Sandra, [email protected]

Johannes, [email protected]

License

Pikko is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].