Skip to main content

Graphics

Events for controlling graphical elements such as palettes, overlays, and background layers.

Image

Image Load

Load an image into the VDP for later usage.
Image Load
Image
Background 1
Image Handle
$Variable0
Load Palette
Palette Slot
PAL0 (Background)
  • Image: The image to load into the VDP.
  • Image Handle: The image handle to operate with the image. You can use this handle to draw or unload the image.
  • Palette Slot: The palette slot you want to use.

Image Replace

Replaces the initial image used on the scene with the new one, useful for scroll automatic processing as well as Scene Redraws, etc.
Image Replace
Image Handle
$Variable0
Plane
Plane B (Background)
  • Image Handle: The image handle to operate with the image. You can use this handle to draw or unload the image.
  • Plane: The plane we want to use

Image Unload

Unload an image from VDP.
Image Unload
Image Handle
$Variable0
  • Image Handle: The image handle to operate with the image. You can use this handle to draw or unload the image.

Image Draw

Draw an image loaded into the VDP.
Image Draw
Image Handle
$Variable0
X
0
Y
0
Palette Slot
PAL0 (Background)
Plane
Plane B (Background)
Priority
  • Image Handle: The image handle to operate with the image. You can use this handle to draw or unload the image.
  • X: The horizontal position.
  • Y: The vertical position.
  • Palette Slot: The palette slot you want to use.
  • Plane: The plane we want to use

Image Enable Axis Streaming

Enables image axis streaming during scrolling for the selected axis, only one axis can be used at a time.
Image Enable Axis Streaming
Image Handle
$Variable0
Direction
Horizontal
  • Image Handle: The image handle to operate with the image. You can use this handle to draw or unload the image.
  • Direction: The direction the streaming will be done.

Image Get Layer Handle

Load the selected layer's image handle into a variable to do draw calls.
Image Get Layer Handle
Image Handle
$Variable0
Plane
Unknown Type planeSelect
  • Image Handle: The image handle to operate with the image. You can use this handle to draw or unload the image.
  • Plane: The plane we want to use

Palettes

Load Palettes

Replace some or all of the current scene's palettes instantly.
Load Palettes
Palettes
0: Palette 0                                                                             
1: Palette 1                                                                             
2: Palette 2                                                                             
3: Palette 3                                                                             
  • Palettes: The new palettes to use.

Preload Palettes

Preload some or all of the current scene's palettes, they won't be replaced into CRAM until you invoke a fade in.
Preload Palettes
Palettes
0: Palette 0                                                                             
1: Palette 1                                                                             
2: Palette 2                                                                             
3: Palette 3                                                                             
  • Palettes: The new palettes to use.

Palette Set Color

Change the selected color from the selected palette to the values given. It's faster than RGB method due to colors are compiled and not calculated on runtime.
Palette Set Color
Palette Slot
PAL0 (Background)
Color Index
0
Color
R
255
G
255
B
255
  • Palette Slot: The palette slot you want to use.
  • Color Index: The color index to use inside the palette.

Palette Set Color RGB

Change the selected color from the selected palette to the RGB values given.
Palette Set Color RGB
Palette Slot
PAL0 (Background)
Color Index
0
Color
R
0
G
0
B
0
  • Palette Slot: The palette slot you want to use.
  • Color Index: The color index to use inside the palette.

Palette Set Color From Palette

Change the selected color from the selected palette to the selected one.
Palette Set Color From Palette
Palette Slot
PAL0 (Background)
Color Index
0
Palette to copy the color from:
Palette
0: Palette 0                                                                             
Color Index
0
  • Palette Slot: The palette slot you want to use.
  • Color Index: The color index to use inside the palette.
  • Palette: The new palette to use.

Set Background Color (Palette Index)

Point the MD backdrop register at an existing palette entry. MD-only. The backdrop will match whatever RGB is currently loaded in that slot.
Set Background Color (Palette Index)
Pick an existing palette entry to use as the backdrop color.
Palette Slot
PAL0 (Background)
Color Index
0
  • Palette Slot: The palette slot you want to use.
  • Color Index: The color index to use inside the palette.