Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(dst ivg.Destination, src []byte, opts ...DecodeOption) error
Decode decodes an IconVG graphic. If no option to change the color palette is provided, the palette suggested in the IconVG graphic's data will be used.
func DecodeViewBox ¶
DecodeViewbox decodes only the metadata in an IconVG graphic.
func Disassemble ¶ added in v0.0.7
Disassemble returns a disassembly of an encoded IconVG graphic.
Types ¶
type DecodeError ¶
type DecodeError string
func (DecodeError) Error ¶
func (e DecodeError) Error() string
type DecodeOption ¶
DecodeOption is an optional parameter to the Decode function.
func WithColorAt ¶
func WithColorAt(index int, c color.Color) DecodeOption
WithColorAt replaces the color at the given index in the palette that was decoded.
func WithPalette ¶
func WithPalette(p [64]color.RGBA) DecodeOption
WithPalette replaces the complete palette with the given one.
Click to show internal directories.
Click to hide internal directories.