Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Sprite Loader

Allen Ray edited this page Aug 14, 2020 · 2 revisions

Just a simple sprite loader based on the Pixel example.

Loading a sprite into a pixel.Sprite

sprite, err := pixelutils.LoadSprite("sprite.png")

Loading a sprite into pixel.PictureData

data, err := pixelutils.LoadPictureData("sprite.png")
Clone this wiki locally