package
Version:
v1.0.0-rc.1
Opens a new window with list of versions in this module.
Published: Oct 29, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Icon struct {
Size int `json:"size"`
Layers []Layer `json:"layers"`
}
type Layer struct {
FileName string `json:"fileName"`
Offset Offset `json:"offset"`
Scale float64 `json:"scale"`
Size int `json:"size"`
Tint Color `json:"tint"`
}
type Offset struct {
X int `json:"x"`
Y int `json:"y"`
}
type RenderProperties struct {
RenderedSize int
RenderedScale float64
OutputSize int
}
RenderProperties hold additional values needed for rendering an icon.
NewRenderPropertiesFromIcon creates the rendering properties for the provided icon.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.