Documentation ¶
Overview ¶
library and cli for convert image to ASCII art
Index ¶
Constants ¶
View Source
const (
FontAspectRatio = 0.5 // according to https://terminus-font.sourceforge.net/
)
Variables ¶
View Source
var ( CharsetBlock = Charset("█") CharsetDefault = Charset(" .,:;i1tfLCG08@") )
Functions ¶
func NewConverter ¶
func NewConverter(options ...GOSCIIConverterOptions) (*goSCIIConverter, error)
Create new converter
Types ¶
type GOSCIIConverter ¶
type GOSCIIConverterOptions ¶
type GOSCIIConverterOptions struct { // Charset to use Charset Charset // Output columns Columns int // Output rows Rows int // Output resize algorithm Fit Fit // Font aspect ratio FontAspectRatio float64 }
Converter options
func (*GOSCIIConverterOptions) Merge ¶
func (dest *GOSCIIConverterOptions) Merge(source GOSCIIConverterOptions)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.