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.
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.