Skip to content

Takes an image file and converts it to a Lego mosaic.

Notifications You must be signed in to change notification settings

erikvanzijst/pixelportrait

Repository files navigation

Lego Pixel Portrait Generator

Takes an image file and converts it to a Lego mosaic.

Usage

$ pip install -r requirements.txt
$ ./portrait.py < owen.png > owen.ldr

Mosaics are generated using the LDraw file format which can be viewed using a variety of viewer applications, such as LDView.

It can also be used as input for generating Lego instruction booklets.

Images must be using 5 colors or less, as the Lego palette is rather limited.

About

Takes an image file and converts it to a Lego mosaic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published