ng2-kw-duotone-image

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i ng2-kw-duotone-image

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • subarroca