Aegisub/OverLua/docs/test1.lua
Niels Martin Hansen 0211960d8e Another project for the Aegisub repository...
Originally committed to SVN as r1475.
2007-08-11 19:59:48 +00:00

15 lines
254 B
Lua

function render_frame(f, t)
local w, h = f.width, f.height
for x = 0, 20 do
for y = 0, 20 do
f[y*w+x] = {x*10,y*10,255}
end
end
for x = 21, 40 do
for y = 0, h-1 do
local r, g, b = f(x,y)
f[y*w+x] = {255-r, 255-g, 255-b}
end
end
end