Documentation ¶
Index ¶
Constants ¶
View Source
const ( WebPKMin = 0 WebPKMax = 0 DefaultScreenDelayMillis = 50 DefaultMaxAgeSeconds = 0 // 0 => no max age, cache forever! )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Screens ¶
type Screens struct { MaxAge int32 ShowFullAnimation bool // contains filtered or unexported fields }
func ScreensFromImages ¶
func ScreensFromRoots ¶
func (*Screens) Empty ¶ added in v0.34.0
Empty returns true if there are no render roots or images in this screen.
func (*Screens) EncodeGIF ¶
func (s *Screens) EncodeGIF(maxDuration int, filters ...ImageFilter) ([]byte, error)
Renders a screen to GIF. Optionally pass filters for postprocessing each individual frame.
func (*Screens) EncodeWebP ¶
func (s *Screens) EncodeWebP(maxDuration int, filters ...ImageFilter) ([]byte, error)
Renders a screen to WebP. Optionally pass filters for postprocessing each individual frame.
Click to show internal directories.
Click to hide internal directories.