Skip to content
simple iOS View mapped to a color gradient
Objective-C Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets
ColorMapExample
ColorMapView.xcodeproj
ColorMapView.xcworkspace
ColorMapView
ColorMapViewSimulatorTests
ColorMapViewTests
Raw
Screenshots
Tools
.coveralls.yml
.gitignore
.travis.yml
ColorMapView.podspec
Gemfile
Gemfile.lock
LICENSE.md
Podfile
Podfile.lock
README.md

README.md

ColorMapView

Travis Build Status Coverage Status Pod Platform Pod License Pod Version

ColorMapView is a simple iOS View mapped to a color gradient. Great for color picker type dealies.

screenshot1

Installation

ColorMapView is available through cocoapods, to install simple add the following line to your PodFile:

  pod "ColorMapView"

Alternatively you can clone the github repo.

Setup

Once you've installed the class:

  • Include the ColorMapView header
    #import <ColorMapView/ColorMapView.h>
  • From there you can either create your ColorMapView instance in Interface Builder or in code by using:
	ColorMapView *colorMapView = [ [ColorMapView alloc] initWithFrame:(CGRect)frame];
  • The view provides an easy way to get the color at a location within the view.
	[colorMapView getColorAtLocation:CGPointMake(50, 200) ];
You can’t perform that action at this time.