movies

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Movie

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

Movie is a set of scenes

func FromJSON

func FromJSON(spriteMap sprites.SpriteMap, data string, parameters map[string]interface{}) (*Movie, error)

FromJSON creates a new movie from JSON

func New

func New() *Movie

New creates a new movie

func (*Movie) Add

func (m *Movie) Add(scene *scenes.Scene)

Add adds a scene to the movie

func (*Movie) GetClip

func (m *Movie) GetClip(scene, layer, clip string) (*clips.Clip, error)

GetClip gets a clip from the movie

func (*Movie) GetClips

func (m *Movie) GetClips(scene, layer, clip string) ([]*clips.Clip, error)

GetClips gets a series of clips from the movie

func (*Movie) GetContainer

func (m *Movie) GetContainer() *fyne.Container

GetContainer gets the container from the movie

func (*Movie) SetSize

func (m *Movie) SetSize(width, height int)

SetSize set the size of the movie

Jump to

Keyboard shortcuts

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