GPL license on Nitrofurano's Lua scripts. thanks!

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1393 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2010-03-21 21:46:03 +00:00
parent 8962e18362
commit 5f06caaf58
10 changed files with 84 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
-- Test LUA inputbox
-- this script only resizes the brush
-- this script tests the inputbox
w, h = getbrushsize()
--[[
@@ -16,16 +16,18 @@ ok, w, h = inputbox("Modify brush",
"Width", w, -900.0,900.0, 3,
"Height", h, -900.0,900.0, 4,
"X Flip", 0, 0, 1, 0,
"Y Flip", 0, 0, 1, 0
"Y Flip", 0, 0, 1, 0,
"RGB", 1, 0, 1, -1,
"HSV", 0, 0, 1, -1,
"HSL", 0, 0, 1, -1,
"Degrees",1, 0, 1, -2,
"Radians",0, 0, 1, -2
);
if ok == true then
setbrushsize(w,h)
for y = 0, h-1, 1 do
for x = 0, w-1, 1 do
putbrushpixel(x,y,1);
end
end
messagebox(
"w: " .. w .. "\n" ..
"h: " .. h .. "\n"
)
end