render

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HalfBlock

func HalfBlock(w io.Writer, img image.Image) error

HalfBlock renders img using Unicode half-block characters (▀ U+2580). Each character cell encodes two vertically stacked pixels using foreground (top) and background (bottom) ANSI 24-bit color. Works on any terminal with UTF-8 and truecolor support.

func Kitty

func Kitty(w io.Writer, img image.Image) error

Kitty encodes img and writes a Kitty graphics protocol sequence to w. The image is re-encoded as PNG (Kitty format f=100) and chunked.

func Sixel

func Sixel(w io.Writer, img image.Image) error

Sixel encodes img as a DEC Sixel sequence and writes it to w. Colors are quantized to 256 using a fast median-cut algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL