Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 591 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 591 Bytes

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.