Skip to content

esimov/legoizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

legoizer

Legoizer is a simple tool to generate lego-like images taking as input an image and converting it to lego bricks. This process consists of two steps:

  1. The image is converted to it's quantified representation to reduce the number of colors.
  2. The bricks are generated based on the curently processed cell color compared to it's neighboring cells average color.

Install

$ go get -u github.com/esimov/legoizer

Run

Type $ legoizer --help to get the currently supported commands.

Usage of legoizer:
  -colors int
    	Number of colors (default 128)
  -in string
    	Input path
  -out string
    	Output path
  -size int
    	Lego size     
Source image Legoized image

Discalimer

This is a simple toy, so it does not have any commercial usage.

License

This software is distributed under the MIT license found in the LICENSE file.

About

A tool to convert images to Lego bricks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages