assets

package
v0.0.0-...-102030d Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

func Save

func Save(fs types.FS) error

Types

type Costume

type Costume struct {
	Name             string
	RotationCenterX  int
	RotationCenterY  int
	BitmapResolution int
	// contains filtered or unexported fields
}

func CostumeBlank

func CostumeBlank(name string) *Costume

func CostumeScratchCat

func CostumeScratchCat(name string) *Costume

func CostumeScratchCatB

func CostumeScratchCatB(name string) *Costume

func GetCostume

func GetCostume(name string, data io.Reader, format CostumeFormat) *Costume

func GetCostumeFromImage

func GetCostumeFromImage(name string, img image.Image) (*Costume, error)

func (*Costume) Build

func (c *Costume) Build() types.ScratchCostume

type CostumeFormat

type CostumeFormat int
const (
	CostumeFormatSVG CostumeFormat = iota
	CostumeFormatPNG
)

type Sound

type Sound struct {
	Name string
	// contains filtered or unexported fields
}

func GetSound

func GetSound(name string, data io.Reader, rate int, sampleCount int) *Sound

func (*Sound) Build

func (s *Sound) Build() types.ScratchSound

Jump to

Keyboard shortcuts

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