Language: lua
while true do
gui.box(0, 8,255,231,0x00FF0001,0x00FF0001)
emu.frameadvance()
end
Should paint an (almost) invisible green box on the entire screen. You shouldn't notice any difference in color.
What's likely a bug is the fact
I see everything is shifted up 8 pixels.
For more fun, here's a small box you can drag around:
Language: lua
local lastkeys, keys= input.get(), input.get()
--*****************************************************************************
local function UpdateKeys() lastkeys= keys; keys= input.get() end
--*****************************************************************************
local function Limits(V,l,h) return math.max(math.min(V,h),l) end
--*****************************************************************************
local x,y= 50, 50
local function Fn()
UpdateKeys()
if keys.leftclick then
x= Limits(x+keys.xmouse-lastkeys.xmouse , 0 , 235)
y= Limits(y+keys.ymouse-lastkeys.ymouse , 8 , 211)
end
gui.box(x,y,x+20,y+20,0x00FF0001,0x00FF0040)
end
gui.register(Fn)