Turning Pixels Into LEGO Pieces

Looking to spice up his living room with some modular plastic pieces, [Quentin] came up with a way to take digital pixels and convert them to LEGO building plans. The end result is a coffee table top that uses a font complete with anti-aliasing.

The first thing he did was figure out physical dimension and color palettes available from the popular building blocks. His search yielded all of the answers after he spent some time on Brickipedia. Armed with that knowledge he started bargain hunting, settling on a brick size that yielded adequate resolution without breaking the bank (he budgeted 87 Euros or about $125 for materials). From there he used Photoshop, along with a custom color palate that matches the LEGO colors, to generate the design. Image in hand, he finished the planning stage by writing a program to count the pixels, convert them into LEGO bricks, and spit out an order list and build instructions. He’s saving others the trouble of doing the same by releasing his source code.

Of course the project wouldn’t be nearly as fun if he hadn’t made a fast-time build video. We’ve embedded it after the break.

Continue reading “Turning Pixels Into LEGO Pieces”