Skip to content

nicomignoni/legify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legify

Converts images into LEGO mosaic.

The conversion is made using LEGO 1x1 (part ID: 3005) as pixel. Each pixel RBG is mapped to the limited LEGO Digital Designer (LDD) palette: if we consider each color as a vector, as the -th color from the palette, as the original pixel color, then the new color is calculated as

for each pixel in the image.

The script returns a .lxfml file (older than the current .lxf) to be opened in LDD.