mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-23 21:21:53 +02:00
8 lines
211 B
JavaScript
8 lines
211 B
JavaScript
/* IMPORT */
|
|
import adjustChannel from './adjust_channel.js';
|
|
/* MAIN */
|
|
const transparentize = (color, amount) => {
|
|
return adjustChannel(color, 'a', -amount);
|
|
};
|
|
/* EXPORT */
|
|
export default transparentize;
|