mirror of
https://github.com/thangisme/notes.git
synced 2024-06-11 21:01:01 +00:00
8 lines
211 B
JavaScript
8 lines
211 B
JavaScript
module.exports = function darken(color) {
|
|
color.use(require('../HSL'));
|
|
|
|
color.installMethod('darken', function (amount) {
|
|
return this.lightness(isNaN(amount) ? -0.1 : -amount, true);
|
|
});
|
|
};
|