blowfish/node_modules/khroma/dist/methods/transparentize.js
2023-01-29 22:30:24 +00:00

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;