Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedFile = errors.New("unsupported file type")
ErrUnsupportedFile is returned when the given file is not supported.
Functions ¶
This section is empty.
Types ¶
type GIF ¶
type GIF struct {
// contains filtered or unexported fields
}
GIF is a Generator that generates the pixels from a GIF image file.
type Image ¶
Image represents a generic static image. It implements pixel.Generator.
func NewImageGenerator ¶
func NewImageGenerator(img image.Image, options pixel.GeneratorOptions) Image
NewImageGenerator returns a Generator for the given image and offsets. The pixel order can be randomized.
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater implements a pixel.Generator that updates an image from a given source.
func FromFile ¶
func FromFile(path string, options pixel.GeneratorOptions) (*Updater, error)
FromFile returns an Updater that refreshes from a given file.
func FromWeb ¶
func FromWeb(uri string, options pixel.GeneratorOptions) (*Updater, error)
FromWeb returns an Updater that refreshes from a given URL.
Click to show internal directories.
Click to hide internal directories.