ga-ascii-art

command module
v0.0.0-...-59ccc73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

README

A pet project, does not really work for now.

Made in Go, using Evolutionary optimization library for Go

What is this

The goal of this code is to use Genetic Algorithms to create ASCII art images from a source png file. In GA terms, the genome is a grid of characters mutated randomly, and the fitness evaluation is done comparing the rendered text with the goal image.

Maybe it could work with a good combination of parameters for the genetic algorithm. For now it can only produce satisfactory results with the --simple flag and small images.

Usage:
  main [OPTIONS]

This command reads ./image.png and tries to create ASCII representation using Genetic Algorithms

Application Options:
  -f, --file=   Path to the input .png image (default: ./image.png)
  -s, --simple  Uses # and ' ' instead of any character

Help Options:
  -h, --help    Show this help message

$ go run main.go -s -f test-img/halfpounds-small.png

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL