This crate implements the embedded-graphics DrawTarget
trait for the Game Boy Advance. This works when the GBA's display is used in a bitmap mode: Mode3
, Mode4
, or Mode5
.
The GBA Tile4bpp
and Tile8bpp
objects also accept Drawable
items to create sprites.
PaletteColor
is a custom PixelColor
that represents an index into a GBA color palette.
The draw.rs example loads a background image using the tinytga crate. Use the D-pad, A button, and B button to draw over the background. The start button clears the screen. The gba crate builds the example into a GBA ROM.