jm-color-eyedropper

will give you color of pixel from image (canvas with image auto-scaling)


Keywords
eyedropper, angular, color
License
MIT
Install
bower install jm-color-eyedropper

Documentation

angular-color-eyedropper

##Install

bower install jm-color-eyedropper

##Use

  1. Install it;
  2. Add jmColorEyedropper to your angular module dependencies list;
  3. Declare <jm-eyedropper-canvas> element in HTML.

This canvas will load image from img-src attribute, scale size of image to width/height of canvas (from width and height attributes) and will set ng-model to color data of pixel on mouseclick event. If ng-change declared, will be triggered also.