encode

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebPKMin                 = 0
	WebPKMax                 = 0
	DefaultScreenDelayMillis = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageFilter

type ImageFilter func(image.Image) (image.Image, error)

type Screens

type Screens struct {
	// contains filtered or unexported fields
}

func ScreensFromImages

func ScreensFromImages(images ...image.Image) *Screens

func ScreensFromRoots

func ScreensFromRoots(roots []render.Root) *Screens

func (*Screens) EncodeGIF

func (s *Screens) EncodeGIF(filters ...ImageFilter) ([]byte, error)

Renders a screen to GIF. Optionally pass filters for postprocessing each individual frame.

func (*Screens) EncodeWebP

func (s *Screens) EncodeWebP(filters ...ImageFilter) ([]byte, error)

Renders a screen to WebP. Optionally pass filters for postprocessing each individual frame.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL