Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Adorkable/ColorMapView

Repository files navigation

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) ];

About

simple iOS View mapped to a color gradient

Resources

License

Stars

Watchers

Forks

Packages

No packages published