lib

package
v0.0.0-...-5a2c5e0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BlendModeNormal     = internal.BlendModeNormal
	BlendModeMultiply   = internal.BlendModeMultiply
	BlendModeScreen     = internal.BlendModeScreen
	BlendModeOverlay    = internal.BlendModeOverlay
	BlendModeDarken     = internal.BlendModeDarken
	BlendModeLighten    = internal.BlendModeLighten
	BlendModeColorDodge = internal.BlendModeColorDodge
	BlendModeColorBurn  = internal.BlendModeColorBurn
	BlendModeHardLight  = internal.BlendModeHardLight
	BlendModeSoftLight  = internal.BlendModeSoftLight
	BlendModeDifference = internal.BlendModeDifference
	BlendModeExclusion  = internal.BlendModeExclusion
	BlendModeHue        = internal.BlendModeHue
	BlendModeSaturation = internal.BlendModeSaturation
	BlendModeColor      = internal.BlendModeColor
	BlendModeLuminosity = internal.BlendModeLuminosity
	BlendModeAddition   = internal.BlendModeAddition
	BlendModeSubtract   = internal.BlendModeSubtract
	BlendModeDivide     = internal.BlendModeDivide
)

Variables

This section is empty.

Functions

func LoadFrames

func LoadFrames(path string) ([]FrameImage, []Tag, error)

func LoadSplitFramesAndLayers

func LoadSplitFramesAndLayers(path string) (frames []Frame, tags []Tag, err error)

func Slice

func Slice(img image.Image, gridWidth, gridHeight int) (result []image.Image, err error)

func Smash

func Smash(layers []Layer) (result image.Image)

func SmashAndSlice

func SmashAndSlice(layers []Layer, gridWidth, gridHeight int) (result []image.Image, err error)

Types

type BlendMode

type BlendMode = internal.BlendMode

type Frame

type Frame = output.Frame

type FrameImage

type FrameImage = output.FrameImage

type Layer

type Layer = output.Layer

type Sliceable

type Sliceable interface {
	SubImage(r image.Rectangle) image.Image
}

type Tag

type Tag = output.Tag

Jump to

Keyboard shortcuts

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