File size: 285 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

/* IMPORT */

import adjustChannel from '~/methods/adjust_channel';
import type {Channels} from '~/types';

/* MAIN */

const darken = ( color: string | Channels, amount: number ): string => {

  return adjustChannel ( color, 'l', -amount );

};

/* EXPORT */

export default darken;