This is a first attempt, I really appreciate feedback!
npm install duotone-image --save
import makeDuoToneImage from 'duotone-image'
makeDuoToneImage({
domNode: '.image',
imageUrl: 'https://images.unsplash.com/photo-1505881502353-a1986add3762',
color1: [24, 192, 102],
color2: [0, 0, 30]
})
options (key) | type | required |
---|---|---|
domNode | String | yes |
imageUrl | String | yes |
color1 | Array [rgb] | yes |
color2 | Array [rgb] | yes |