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