grafX2/share/grafx2/scripts/pic_ni_PaletteX8.lua
Yves Rizoud 5f06caaf58 GPL license on Nitrofurano's Lua scripts. thanks!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1393 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-21 21:46:03 +00:00

17 lines
475 B
Lua

-- x8 palette to picture
-- Copyright 2010 Paulo Silva
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; version 2
-- of the License. See <http://www.gnu.org/licenses/>
setpicturesize(256,64);
for y1=0,7,1 do
for x1=0,31,1 do
for y2=0,7,1 do
for x2=0,7,1 do
putpicturepixel(x1*8+x2,y1*8+y2,y1+x1*8)
end;end;end;end