Documentation
¶
Index ¶
Constants ¶
View Source
const MaxColors = 256
MaxColors is the maximum number of colors in a Sixel palette.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder encodes images using the Sixel graphics protocol.
func NewEncoder ¶
NewEncoder creates a new Encoder with the given options.
type Option ¶
type Option func(*Encoder)
Option configures an Encoder.
func WithOnAfterEncode ¶
func WithOnAfterEncode(fn func()) Option
WithOnAfterEncode sets the callback called after encoding completes.
func WithOnAfterEncodeChunk ¶
WithOnAfterEncodeChunk sets the callback called after each band is encoded.
func WithOnBeforeEncode ¶
func WithOnBeforeEncode(fn func()) Option
WithOnBeforeEncode sets the callback called before encoding starts.
func WithOnBeforeEncodeChunk ¶
WithOnBeforeEncodeChunk sets the callback called before each band is encoded.
Click to show internal directories.
Click to hide internal directories.