img2ascii

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 2 Imported by: 0

README

img2ascii

Go Reference | Go Report Card

Image to ascii (and not only) conversion tool and library

ASCII

lenna-ascii

256 colors

lenna-ansi

256 colors double height resolution

lenna-ansi

24bit color

lenna-24bit

24bit color double height resolution

lenna-24bit

Documentation

Index

Constants

View Source
const HalfHeightRatio = 9 / 11.

HalfHeightRatio represents the width/height ratio of a character for half row pixel height

View Source
const SingleHeightRatio = 9 / 22.

SingleHeightRatio represents the width/height ratio of a character for single row pixel height

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(w io.Writer, m image.Image) error
	GetFontRatio() float64
}

Encoder is the interface implemented by all converters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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