Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClosestColor ¶
GetClosestColor returns the closest color in the pallet to the given color.
Types ¶
type Sprite ¶
func LoadFromImage ¶
LoadFromImage loads a sprite from an image by the filepath.
func (*Sprite) Crop ¶
Crop crops the sprite with the given x, y, width, and height. returns a new sprite.
Click to show internal directories.
Click to hide internal directories.