Skip to content

subarroca/ng2-kw-duotone-image

Repository files navigation

ng2-kw-duotone-image

Angular2 component to apply a duotone SVG filter to an image

As seen on Angularbeers http://www.meetup.com/AngularJS-Beers/events/234753624/

Based on http://codepen.io/jmperez/pen/LGqaxQ

Installing

ng2-kw-duotone-image is available via npm

npm install ng2-kw-duotone-image -S

Import DuotoneImageModule in your module

import { DuotoneImageModule } from 'ng2-kw-duotone-image';

Usage:

<ng2-kw-duotone-image></ng2-kw-duotone-image>

Options:

  • lightColor: string | color to be used for whites
  • darkColor: string | color to be used fro blacks
  • src: string | image src
  • width: string | image width
  • src: string | image height