Documentation ¶
Overview ¶
Package spritesheet8x8x256 provides a type that represents a sprite sheet of 256 8×8 sprites, that seamlessly works with Go's built-in "image", "image/color", and "image/draw" packages.
The slice- and array- indexing of the pixels / pels in each sprite is as follows:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Index ¶
Constants ¶
View Source
const ( Width = 8 // The width of each sprite. Height = 8 // The height of each sprite. Length = 256 // The total number of sprites. Depth = 1 // The number of types used to represent each pixel / pel in the sprite. )
View Source
const ByteSize = Width * Height * Length * Depth
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.