Skip to content

Sample RGB Color RAM Address

Master Nama edited this page Sep 19, 2019 · 10 revisions

Sample

0x3FC0 - Red 0x3FC1 - Green 0x3FC2 - Blue

Change your color using poke()

Results

Red

Green

Blue

This Black color can be through changing color using sync()

Example

Code

-- title:  RGB color animation test
-- author: masternama
-- script: lua

sw=0 -- screen wait

function TIC()
  if sw>0 then
  cls() -- black color
  poke(0x3FC0,255) -- Red
end

if sw>10 then
  cls() -- black color
  poke(0x3FC1,255) -- Green
end

if sw>20 then
  cls() -- black color
  poke(0x3FC2,255) -- Blue
end

if sw>30 then
  reset() -- Loop reset
end

print("HELLO WORLD!",88,70)
--sync(0,0,true)

sw=sw+1
end

Link

TIC-80 VRAM/RAM are available show Name, RAM Address & size.

Learn More

https://github.com/nesbox/TIC-80/wiki/RAM

Clone this wiki locally