All Projects → 623637646 → UIImageColorRatio

623637646 / UIImageColorRatio

Licence: MIT license
A tool to calculate the color ratio of UIImage in iOS.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to UIImageColorRatio

Colorschemes.jl
colorschemes, colormaps, gradients, and palettes
Stars: ✭ 55 (+61.76%)
Mutual labels:  color, colors
Values.js
🍇 Get the tints and shades of a color
Stars: ✭ 97 (+185.29%)
Mutual labels:  color, colors
Colors
List of 256 color codes for Xterm including an example of the color, Xterm Name, Xterm Number, HEX, RGB and HSL code.
Stars: ✭ 73 (+114.71%)
Mutual labels:  color, colors
Color.js
Extract colors from an image (0.75 KB) 🎨
Stars: ✭ 42 (+23.53%)
Mutual labels:  color, colors
Jsome
✨ Make your JSON look AWESOME
Stars: ✭ 179 (+426.47%)
Mutual labels:  color, colors
Materialdesigncolor
This project shows the color in material design
Stars: ✭ 55 (+61.76%)
Mutual labels:  color, colors
Nord Hyper
An arctic, north-bluish clean and elegant Hyper theme plugin.
Stars: ✭ 96 (+182.35%)
Mutual labels:  color, colors
color-description
Color-Description turns a technical color representation into a human readable description.
Stars: ✭ 18 (-47.06%)
Mutual labels:  color, colors
Zoya
Truly highly composable logging utility
Stars: ✭ 116 (+241.18%)
Mutual labels:  color, colors
Colors.jl
Color manipulation utilities for Julia
Stars: ✭ 114 (+235.29%)
Mutual labels:  color, colors
Leonardo
Generate colors based on a desired contrast ratio
Stars: ✭ 973 (+2761.76%)
Mutual labels:  color, colors
Androidphotoshopcolorpicker
A fully featured Color picker Library for Android
Stars: ✭ 220 (+547.06%)
Mutual labels:  color, colors
Colours
A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier.
Stars: ✭ 3,101 (+9020.59%)
Mutual labels:  color, uicolor
slick
Vim/Neovim Colortheme–Truecolor, Stunning, Complete
Stars: ✭ 15 (-55.88%)
Mutual labels:  color, colors
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+697.06%)
Mutual labels:  color, colors
Color Names
Large list of handpicked color names 🌈
Stars: ✭ 1,198 (+3423.53%)
Mutual labels:  color, colors
colortest
Quickly show all your terminal colors
Stars: ✭ 66 (+94.12%)
Mutual labels:  color, colors
Colorwaver
🎨 An app to detect color palettes in the real world - powered by VisionCamera
Stars: ✭ 365 (+973.53%)
Mutual labels:  color, colors
Console Logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (+226.47%)
Mutual labels:  color, colors
Colors.lol
🎨 Overly descriptive color palettes
Stars: ✭ 207 (+508.82%)
Mutual labels:  color, colors

UIImageColorRatio

A tool to calculate the color ratio of UIImage in iOS.

ezgif com-gif-maker

How to use UIImageColorRatio

Get the color ratio of UIImage.

let image = ...  // your UIImage.
let result = image.calculateColorRatio(deviation: 10) // "deviation": The deviation on pixels, It's from 0 to 255. Bigger deviation means less kind of colors.

Get the effected image.

let image = ...  // your UIImage.
let result = image.calculateColorRatio(deviation: 10)
let effectedImage = image.effectedImage(colorRatioResult: result)

How to integrate UIImageColorRatio?

UIImageColorRatio can be integrated by cocoapods.

pod 'UIImageColorRatio'

Or use Swift Package Manager. SPM is supported from 1.2.0.

Performance

You can see the duration of the calculation from calculateColorRatio API's result.

You MUST use Release build configuration to see the performance. Because swfit is very slow on Debug build configuration.

Screenshot 2021-05-11 at 11 23 19 AM

Refer here: https://stackoverflow.com/q/61998649/9315497

Requirements

  • iOS 10.0+
  • Xcode 11+
  • Swift 5.0+
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].