add hw2
This commit is contained in:
8
node_modules/khroma/dist/methods/opacify.js
generated
vendored
Normal file
8
node_modules/khroma/dist/methods/opacify.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/* IMPORT */
|
||||
import adjustChannel from './adjust_channel.js';
|
||||
/* MAIN */
|
||||
const opacify = (color, amount) => {
|
||||
return adjustChannel(color, 'a', amount);
|
||||
};
|
||||
/* EXPORT */
|
||||
export default opacify;
|
||||
Reference in New Issue
Block a user