Skip to content

noudadrichem/duotone-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create duotone images

This is a first attempt, I really appreciate feedback!

Demo website

Preview

screen shot 2018-05-31 at 17 46 11

Install:

npm install duotone-image --save

How to use

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

options (key) type required
domNode String yes
imageUrl String yes
color1 Array [rgb] yes
color2 Array [rgb] yes

About

⚫⚪ - Create duotone images with a simple Javascript function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published