GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 76parse/LEColorPicker: A Cocoa-Touch system for iOS to get a color scheme in function of an image, like iTunes 11 does.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

116 Commits
116 Commits

Folders and files

NameName
Last commit message
Last commit date
Externals/ATPagingView
Externals/ATPagingView
 
 
LEColorPicker
LEColorPicker
 
 
LEColorPickerDemo.xcodeproj
LEColorPickerDemo.xcodeproj
 
 
LEColorPickerDemo
LEColorPickerDemo
 
 
Resources
Resources
 
 
.gitignore
.gitignore
 
 
LICENSE.markdown
LICENSE.markdown
 
 
README.md
README.md
 
 
Screenshot_Mona.png
Screenshot_Mona.png
 
 
Screenshot_Vortex.png
Screenshot_Vortex.png
 
 

Repository files navigation

LEColorPicker

A Cocoa-Touch system for getting a color scheme in function of an image, like iTunes 11 does. It is designed as a general purpose class set, in wich LEColorPicker is the interface for your client code.

LEColorPicker_Vortex LEColorPicker_Mona

Release note: Current release (1.0) run faster in devices than simulator.

Installation

  • Add the OpenGLES framework to your project.
  • Drag the 'LEColorPickerDemo/LEColorPicker' folder into your project, and you are done.

Usage

First, you have to create an instance of a LEColorPicker object. Then, LEColorPicker class provides an instance method that receives an UIImage as input and returns a LEColorScheme object. LEColorScheme will provide the three computed colors as properties.

#import "LEColorPicker.h"
...
LEColorPicker *colorPicker = [[LEColorPicker alloc] init];
LEColorScheme *colorScheme = [colorPicker colorSchemeFromImage:image];
aView.backgroundColor = [colorScheme backgroundColor];
titleTextField.textColor = [colorScheme primaryTextColor];
bodyTextField.textColor = [colorScheme secondaryTextColor];
...

About the sample images

All images are public domain. If you want to add your own testing images, drag the image to the Resources folder of the project, in Xcode. Don't use names with "Default" or will be filtered. Only PNG images are supported (for now) in the sample project.

License

See LICENSE.markdown

Thanks to

Andrey Tarantsov for ATPagingView.

User Olie from StackOverflow, for his function to get a RGBA pixel array from an UIImage.

User Seth Thompson from StackOverflow for his Mathematica code for pick the colors like iTunes 11.

Ray Wenderlich tutorials.

Contact

Suggestions will be well received.

Mail [email protected]

Twitter @luis_espinoza

MacBuildServer

You can try the demo in your device via MacBuildServer.


by MacBuildServer

Bitdeli Badge

About

A Cocoa-Touch system for iOS to get a color scheme in function of an image, like iTunes 11 does.

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.