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