Chip8.Interpreter.Display.Sprite (chip8 v0.1.0)
Group of bytes representing the binary structure of an image.
Sprites may be up to 15 bytes
, making it possible to have a maximum
dimension of 8x15
pixels (8 pixels wide and 15 pixels high).
When a sprite heigth is an odd number, the sprite should be padded in
order to become an even number to not interfere with the instructions
location pattern, see Chip8.Interpreter.Instruction
for more information.
Sprites are also used to represent the hexadecimal characters of the
built-in font, in this case, the sprites will be 5 pixels wide, see
Chip8.Interpreter.Font
for more information.
Link to this section Summary
Link to this section Types
Link to this type
bit()
@type bit() :: 0 | 1
Link to this type
bitmap()
@type bitmap() :: [[bit()]]
@type t() :: %Chip8.Interpreter.Display.Sprite{data: [byte()]}
Link to this section Functions
Link to this function
new(data)
Link to this function