Refactored (yes, already) the lua API to allow also generating pictures directly.

Updated doc, and added sample script.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1099 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-10-29 17:27:49 +00:00
parent 06892015ea
commit 2a67c9bdce
3 changed files with 67 additions and 59 deletions

7
test.lua Normal file
View File

@@ -0,0 +1,7 @@
w, h = getbrushsize()
for x = 0, w - 1, 1 do
for y = 0, h - 1, 1 do
putbrushpixel(x, y, (x+y)%256);
end
end