11-12-2014, 09:09 PM
This LUA script changes the background to magenta:
If you know how colour channels work you should be able to modify this to any colour you want. Magenta should be sufficient though.
Copy-paste that into a text file called "bg-change.lua". In the emulator go to Tools -> Lua Scripting -> New Lua Script Window. Click Browse and select bg-change.lua.
Code:
gens.registerbefore(function(address,size)
local p,t=vdp.readpalette(1,1);
local c=pal.getcolor(t[1],1);
c.A=255;
c.B=255;
c.G=0;
c.R=255;
pal.setcolor(t[1],1,c);
vdp.writepalette(1,t[1]);
end)
If you know how colour channels work you should be able to modify this to any colour you want. Magenta should be sufficient though.
Copy-paste that into a text file called "bg-change.lua". In the emulator go to Tools -> Lua Scripting -> New Lua Script Window. Click Browse and select bg-change.lua.