Documentation
¶
Overview ¶
Package pixelview is a simple package which converts images to text formatted for tview. It uses coloured unicode half-block characters (▀) to represent pixels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromFile ¶
FromFile is a convenience function that converts a file on disk to a formatted string. See FromImage() for more details.
func FromImage ¶
FromImage is the primary function of this package, It takes an image.Image and converts it to a string formatted for tview. The unicode half-block character (▀) with a fg & bg colour set will represent pixels in the returned string. Because each character represents two pixels, it is not possible to convert an image if its height is uneven. Attempts to do so will return an error.
Types ¶
This section is empty.