package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jan 9, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
img2ascii
| 
Image to ascii (and not only) conversion library and command line tool
Usage
func ExampleImage_Encode() {
ascii.NewImage().Encode(os.Stdout, i)
// Output:
// =++++***###%%%%%%%%%######****************######
// ===+++***###%%%%%%%%%######****************#####
// -===+++***###%%%%%%%%%######****************####
// --===+++***###%%%%%%%%%######****************###
// ---===+++***###%%%%%%%%%######****************##
// ----===+++***###%%%%%%%%%######****************#
// -----===+++***###%%%%%%%%%######****************
// ------===+++***###%%%%%%%%%######***************
// -------===+++***###%%%%%%%%%######**************
// ==------===+++***###%%%%%%%%%######*************
// ===------===+++***###%%%%%%%%%######************
// ====------===+++***###%%%%%%%%%######***********
// =====------===+++***###%%%%%%%%%######**********
// ======------===+++***###%%%%%%%%%######*********
// =======------===+++***###%%%%@%%%%######********
// ========------===+++***###%%%@%%%%%######*******
// =========------===+++***###%%@%%%%%%######******
// ===#@@===@@*--@#@*%@#+*@%@%#%@%%@@@%%######*****
// ===@*=====+@--@+=@*+@++@##@##@%%@@%@%%######****
// ===*%%==#@@@--@--@==@++@**@##@%%@@@@%%@@#####***
// =====%*=@++@=-@--@-=@=+@*#@**@##@@%%%%%%%#####**
// ===@@%==#@#@==@--@--@==@%@#**@##%@@@%%%%%%######
// ===============------==@+++****###%%%%%%%%%#####
// -===============------=@=++++***###%%%%%%%%%####
// --=*@@===@=======------====+++***###%%%%%%%%%###
// ---@==@==@========-------===+++***###%%%%%%%%%##
// ---@=====@=========-------===+++***###%%%%%%%%%#
// --@@@=@==@==+@@*====-=%@@--+@@*++@%@%@@@%%%%%%%%
// ---@--@==@==@*+@=====%*=---@**@++@##@%%@%%%%%%%%
// :--@--@==@==@@@@=====@=----@==@=+@+*@*#@#%%%%%%%
// ::-@--@-=@==@*=======%*=---%++@==@++@**@##%%%%%%
// :::@--@--@==+@@@==@==+%@@--+@@+==@++@**@###%%%%%
// ::::------===============-------===+++***###%%%%
// :::::------================------===+++***###%%%
// ::::::------================------===+++***###%%
// :::::::------================------===+++***###%
// ::::::::------================------===+++***###
// :::::::::------================------===+++***##
// -:::::::::-------===============------===+++***#
// --:::::::::------================------===+++***
// ---:::::::::-------===============------===+++**
// =---:::::::::-------===============------===+++*
// ==---:::::::::-------===============------===+++
// ===----:::::::::------===============------===++
// +===----:::::::::------===============------===+
// ++===----:::::::::------===============------===
// +++====---:::::::::------===============------==
// *+++====---:::::::::------===============------=
}
Screenshots
ASCII

ANSI 256 colors Single Height

ANSI 256 colors Half Height

ANSI 24bit color Single Height

ANSI 24bit color Half Height

Documentation
¶
HalfHeightRatio represents the width/height ratio of a character for half row pixel height
SingleHeightRatio represents the width/height ratio of a character for single row pixel height
Encoder is the interface implemented by all converters
Source Files
¶
Directories
¶
|
|
|
|
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.