Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GIFMaker ¶
type GIFMaker struct {
// contains filtered or unexported fields
}
GIFMaker is a struct used to create a "Truecolor GIF" from an image
func NewGIFMaker ¶
NewGIFMaker creates a new GIFMaker with the specified options
type Option ¶
type Option func(*GIFMaker)
Option is a function passed to NewGIFMaker to modify the behavior of GIFMaker
func WithBackfill ¶
WithBackfill sets whether the GIF will be backfilled preemptively with the closest color in the palette.
func WithFinalDelay ¶
WithFinalDelay sets the delay for the final frame of the GIF in 100ths of a second - default is 300
func WithFrameDelay ¶
WithFrameDelay sets the delay for each frame in the GIF in 100ths of a second excluding the final frame which is determined by WithFinalDelay
func WithFrameLimit ¶
WithFrameLimit sets the maximum number of frames to be included in the GIF
func WithPopularitySort ¶
WithPopularitySort sets whether the total palette is sorted by popularity
Disabling this option will result in the palette being sorted by the order in which the colors were found to the image. This can improve performance but may result in a less visually pleasing GIF