Documentation ¶
Overview ¶
Package convert provides the core ASCII art conversion function.
Index ¶
Constants ¶
View Source
const CharacterAspectRatio = 1.0 / 2.0
CharacterAspectRatio gives the percentage by which input images' heights will be scaled relative to their native aspect ratio. Characters in most fonts are taller than they are wide, and are even taller when the space between lines is taken into account, resulting in output ASCII "pixels" that are not square.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASCIIArt ¶
type ASCIIArt [][]byte
ASCIIArt is the output of asciist's image conversion. The top-level slice contains the lines of the ASCII art (y axis), and each inner slice contains the bytes of each line (x axis).
Click to show internal directories.
Click to hide internal directories.