Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justinmeiners/ios-color-wheel
A fully scalable, dynamically rendered color wheel for iOS.
https://github.com/justinmeiners/ios-color-wheel
color-picker color-wheel ios objective-c uikit
Last synced: 4 months ago
JSON representation
A fully scalable, dynamically rendered color wheel for iOS.
- Host: GitHub
- URL: https://github.com/justinmeiners/ios-color-wheel
- Owner: justinmeiners
- Created: 2013-01-08T22:08:58.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-08-05T16:53:12.000Z (over 7 years ago)
- Last Synced: 2024-09-19T08:17:17.791Z (5 months ago)
- Topics: color-picker, color-wheel, ios, objective-c, uikit
- Language: Objective-C
- Size: 158 KB
- Stars: 82
- Watchers: 6
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ios-color-wheel
===============### About ###
A fully scalable and dynamically rendered color picker for iOS.
Many other iOS color pickers work by sampling colors from a pre-rendered image of a color wheel. This approach limits the color picker to the size and quality of the static image.
This project contains a color wheel that computes color values mathematically, and renders dynamically, giving a completely scalable UIView and more accurate color selection.### Technical ###
Color wheels visualize and define colors from hue, saturation, and brightness components (HSB color space). On the wheel, two of these components can be mapped to two-dimensional polar coordinates. Hue is defined by the angle on the wheel. Saturation is defined by the distance from the center. Brightness, the third component cannot also be mapped to the two dimensional surface so it must be controlled by a separate control such as a slider.
### Includes ###
- Standalone ISColorWheel class (UIView subclass)
- Example project![sample image](screenshots/main.png)