Skip to content

Instantly share code, notes, and snippets.

@baringji
baringji / reEdition.js
Created December 11, 2021 14:05
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,