Skip to content

matthewmueller/color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color

Extremely basic color tinting component. Based on an answer to the SO question: Programmatically darken a Hex colour

Installation

$ component install matthewmueller/color

Example

var color = require('color'),
    c = 'red';

color.darken(c, .5) // '#ff3232'
color.lighten(c, .5) // '#cd3232'

API

darken(color, val)

Darkens the color by the given val.

lighten(color, val)

Lightens the color by the given val.

License

MIT

About

Extremely basic color tinting component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published