/MCpixelart

Image to minecraft pixelart generator

Primary LanguageSvelteMIT LicenseMIT

Minecraft pixelart generator

Generates an image made of Minecraft' blocks textures by similarity in averaged color of the block and an averaged portion of the input image.

Built using SvelteKit.

Averaging the image

The file responsible for the averaging is imageProcessing.ts.

And the blocks' averaging is done by a python script.

Color format

The color format used for comparison is LAB and the file responsible for transforming the averaged portion of the input image is rgb2lab.ts.

Commands

# run dev server
npn run dev

# build release files
npm run build

# preview release
npm run preview