11 lines
265 B
JavaScript
11 lines
265 B
JavaScript
import { sh } from "../utils.js";
|
|
|
|
export function generateColor(path) {
|
|
sh(`matugen image ${path} --json hex`).then((out) => {
|
|
Utils.writeFile(
|
|
JSON.stringify(JSON.parse(out), null, 2),
|
|
App.configDir + "/colors.json",
|
|
).catch(print);
|
|
});
|
|
}
|