mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-23 10:31:52 +02:00
9 lines
195 B
JavaScript
9 lines
195 B
JavaScript
|
/* IMPORT */
|
||
|
import adjustChannel from './adjust_channel.js';
|
||
|
/* MAIN */
|
||
|
const darken = (color, amount) => {
|
||
|
return adjustChannel(color, 'l', -amount);
|
||
|
};
|
||
|
/* EXPORT */
|
||
|
export default darken;
|