Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
Packer packs multiple images into a single image for performance reasons
type SimpleAlgo ¶
type SimpleAlgo struct{}
SimpleAlgo is a simple but fast algorithm
func (SimpleAlgo) Pack ¶
func (pckr SimpleAlgo) Pack(R []*Rectangle, maxWidth, maxHeight int)
Pack computes the locations for the rectangles
Click to show internal directories.
Click to hide internal directories.