Sample RGB Color RAM Address - winnichenko/BLOB-87 GitHub Wiki
Edit the palette with poke
You can edit the palette directly by poking into RAM.
-ADDR-
0x3FC0 - Index 0 - Red component
0x3FC1 - Index 0 - Green component
0x3FC2 - Index 0 - Blue component
To learn more please see RAM: Palette.
Examples
Red
function TIC()
cls()
-- make the first palette entry RED
poke(0x3FC0, 255)
end
Green
function TIC()
cls()
-- make the first palette entry GREEN
poke(0x3FC1,255)
end
Blue
function TIC()
cls()
-- make the first palette entry BLUE
poke(0x3FC2,255)
end