Skip to content

Sample RGB Color RAM Address

Josh Goebel edited this page Jan 28, 2021 · 10 revisions

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 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

Clone this wiki locally