Documentation ¶
Index ¶
- func ExtrudeImage(img image.Image, extrude int) image.Image
- func ExtrudeImageOnce(img image.Image) image.Image
- func PrepareImageList(images []ImageData, extrude int)
- type ImageData
- type MountData
- type MountFrames
- type SerializedDim
- type SerializedFrame
- type SerializedPos
- type SerializedRect
- type SerializedSpritesheet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtrudeImage ¶
TODO - this is inefficient, but might not matter that much. I think most people will only extrude once
func PrepareImageList ¶
Types ¶
type ImageData ¶
type ImageData struct {
// contains filtered or unexported fields
}
func BasicScanlinePacker ¶
func RowWisePacker ¶
type MountFrames ¶
func CalculateMountPoints ¶
func CalculateMountPoints(images []ImageData) MountFrames
type SerializedDim ¶
type SerializedDim struct {
W, H float64
}
type SerializedFrame ¶
type SerializedFrame struct { Frame SerializedRect Rotated bool Trimmed bool SpriteSourceSize SerializedRect SourceSize SerializedDim Pivot SerializedPos }
type SerializedPos ¶
type SerializedPos struct {
X, Y float64
}
type SerializedRect ¶
type SerializedRect struct {
X, Y, W, H float64
}
type SerializedSpritesheet ¶
type SerializedSpritesheet struct { ImageName string Frames map[string]SerializedFrame Meta map[string]interface{} }
Click to show internal directories.
Click to hide internal directories.