Versions in this module Expand all Collapse all v1 v1.1.7 Apr 19, 2025 v1.1.6 Apr 15, 2025 v1.1.5 Apr 15, 2025 v1.1.4 Apr 15, 2025 Changes in this version + type Atlas struct + Name string + Size Size + Sprites []Sprite + type AtlasInfo struct + Atlases []Atlas + Meta Meta + type Bin struct + PackedRects []Rect + UsedArea int + func NewBin(w, h int, req []Rect) Bin + func (b Bin) FillRate() float64 + func (b Bin) String() string + type Meta struct + Format string + Repo string + Timestamp string + Version string + type Point struct + X int + Y int + func NewPoint(x, y int) Point + type Rect struct + Id int + IsRotated bool + func NewRect(x, y, w, h, id int) Rect + func NewRectByPosAndSize(x, y, w, h int) Rect + func NewRectBySize(w, h int) Rect + func NewRectBySizeAndId(w, h, id int) Rect + func (r Rect) Clone() Rect + func (r Rect) CloneWithPos(x, y int) Rect + func (r Rect) CloneWithSize(w, h int) Rect + func (r Rect) IsContainedIn(rect Rect) bool + func (r Rect) Rotated() Rect + func (r Rect) String() string + func (r Rect) ToImageRect() image.Rectangle + type Size struct + H int + W int + func NewSize(w, h int) Size + func (s Size) Area() int + func (s Size) Clone() Size + func (s Size) PowerOfTwo() Size + func (s Size) Rotated() Size + type Sprite struct + FileName string + Frame Rect + Rotated bool + SrcRect Size + Trimmed bool + TrimmedRect Rect + func (s Sprite) Clone() Sprite