Skip to content

Draw a simple Voronoi diagram art from any image to the terminal using block graphics

Notifications You must be signed in to change notification settings

ctkhanhly/SimpleVoronoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SimpleVoronoi

Draw a simple Voronoi diagram art from any image to the terminal using block graphics. Computed vonoroi sites by setting thredshold to flood fill and group pixels in similar region to the same centroid.

TerminalImageViewer

I borrowed some code from https://github.com/stefanhaustein/TerminalImageViewer to display block graphics in the terminal

Build

git clone https://github.com/ctkhanhly/SimpleVoronoi.git 
cd SimpleVoronoi 
make 
sudo make install 
simple_vonoroi -w [width] -h [height] -d [distance thredshold for flood_fill] [file_name]

Example

The following is example for

simple_voronoi jisoo.jpg -w 100 -h 100 -d 40 

jisoo jisoo_voronoi

About

Draw a simple Voronoi diagram art from any image to the terminal using block graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages