Skip to content

Instantly share code, notes, and snippets.

@cantonyuu
cantonyuu / reEdition.js
Created March 27, 2022 11:45 — forked from baringji/reEdition.js
HashLips Art Engine ReEdition
const fs = require("fs");
const path = require("path");
const { createCanvas, loadImage } = require("canvas");
const basePath = process.cwd();
const buildDir = `${basePath}/build/json`;
const inputDir = `${basePath}/build/images`;
const metaDir = `${basePath}/build/meta`;
const editionDir = `${basePath}/build/editions`;
const {
format,