Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmueller committed Nov 13, 2012
1 parent 8a08e5a commit 56660b2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.js
Expand Up @@ -21,7 +21,16 @@ exports.darken = function(color, value) {
};


// credits: richard maloney 2006
/**
* Tint the color by the given value
*
* Credits: richard maloney 2006
*
* @param {String} color
* @param {Number} v
* @return {String}
*/

function tint(color, v) {
color = color.replace(/^#/, '');
v = (v <= 1) ? v*100 : v;
Expand Down

0 comments on commit 56660b2

Please sign in to comment.