ascii-converter

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 6 Imported by: 0

README

Ascii-Converter

Command line tool for converting PNG images to ascii art.

Usage

$ go build ascii-converter.go
$ ./ascii-converter.exe -f <filepath>

Command Line Arguments

  • f - Path to a PNG image
  • xscale - Scaling factor for the x axis
  • yscale - Scaling factor for the y axis
  • format - Output format:
    • 0 = NO_COLOR
    • 1 = FOREGROUD_COLORED
    • 2 = BACKGROUND_COLORED
    • 3 = PNG
  • o - Output filepath for the converted image

Example

$ ./ascii-converter.exe -f example.png -xscale=2 -yscale=2 -format=2 -o out.txt

Converts an image "example.png" to an ascii art image with the ansi escaped background colors as out.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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