Documentation
¶
Overview ¶
Package renderer provides image rendering for terminal output.
Index ¶
- Variables
- func Render(img image.Image, width int, height int) string
- type CliImage
- func (r CliImage) Dither(dither bool) CliImage
- func (r CliImage) Height(height int) CliImage
- func (r CliImage) IgnoreBlockSymbols(fgOnly bool) CliImage
- func (r CliImage) InvertColors(invertColors bool) CliImage
- func (r *CliImage) Render(img image.Image) string
- func (r CliImage) Scale(scale int) CliImage
- func (r CliImage) Symbol(symbol blocks.Symbol) CliImage
- func (r CliImage) Threshold(threshold int) CliImage
- func (r CliImage) Width(width int) CliImage
Constants ¶
This section is empty.
Variables ¶
View Source
var FloydSteinberg = draw.FloydSteinberg
FloydSteinberg is the Floyd-Steinberg dithering algorithm.
Functions ¶
Types ¶
type CliImage ¶
type CliImage struct {
// contains filtered or unexported fields
}
CliImage is the image renderer.
func (CliImage) IgnoreBlockSymbols ¶
IgnoreBlockSymbols sets whether to use only half blocks.
func (CliImage) InvertColors ¶
InvertColors sets whether to invert colors.
Click to show internal directories.
Click to hide internal directories.