Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Piskel ¶
type Piskel struct { ModelVersion int `json:"modelVersion"` Content PiskelContent `json:"piskel"` }
Piskel top level data
func LoadFromFile ¶
LoadFromFile load Piksel format from file
func LoadFromString ¶
LoadFromString load Piksel format from string
type PiskelChunk ¶
type PiskelChunk struct { Layout [][]int `json:"layout"` Base64PNG string `json:"base64PNG"` Image image.Image }
PiskelChunk chunk data
type PiskelContent ¶
type PiskelContent struct { Name string `json:"name"` Description string `json:"description"` Fps int `json"fps"` Width int `json:"width"` Height int `json:"height"` LayerString []string `json:"layers"` Layers []PiskelLayer }
PiskelContent piksel sprite data
type PiskelLayer ¶
type PiskelLayer struct { Name string `json:"name"` Opacity float32 `json:"opacity"` FrameCount int `json:"frameCount"` Chunks []PiskelChunk `json:"chunks"` }
PiskelLayer layer data
Click to show internal directories.
Click to hide internal directories.