diff --git a/share/grafx2/scripts/_tst_Settings.lua b/share/grafx2/scripts/_tst_Settings.lua index 72f651b2..8d968ac1 100644 --- a/share/grafx2/scripts/_tst_Settings.lua +++ b/share/grafx2/scripts/_tst_Settings.lua @@ -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 - diff --git a/share/grafx2/scripts/pic_ni_Colorspace12bit.lua b/share/grafx2/scripts/pic_ni_Colorspace12bit.lua index b3b219e4..fe88ff56 100644 --- a/share/grafx2/scripts/pic_ni_Colorspace12bit.lua +++ b/share/grafx2/scripts/pic_ni_Colorspace12bit.lua @@ -1,5 +1,13 @@ -- 12bit colour space from palette -- + +-- 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 + w,h=getpicturesize(); for y1=0,3,1 do for x1=0,3,1 do diff --git a/share/grafx2/scripts/pic_ni_Colorspace15bit.lua b/share/grafx2/scripts/pic_ni_Colorspace15bit.lua index 29b768e1..9a82a611 100644 --- a/share/grafx2/scripts/pic_ni_Colorspace15bit.lua +++ b/share/grafx2/scripts/pic_ni_Colorspace15bit.lua @@ -1,5 +1,13 @@ -- 15bit colour space from palette -- + +-- 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 + w,h=getpicturesize(); for y1=0,3,1 do for x1=0,7,1 do diff --git a/share/grafx2/scripts/pic_ni_Colorspace18bit.lua b/share/grafx2/scripts/pic_ni_Colorspace18bit.lua index f3933668..595dd09c 100644 --- a/share/grafx2/scripts/pic_ni_Colorspace18bit.lua +++ b/share/grafx2/scripts/pic_ni_Colorspace18bit.lua @@ -1,5 +1,13 @@ -- 18bit colour space from palette -- + +-- 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 + w,h=getpicturesize(); for y1=0,7,1 do for x1=0,7,1 do diff --git a/share/grafx2/scripts/pic_ni_GlassGridFilter.lua b/share/grafx2/scripts/pic_ni_GlassGridFilter.lua index dbdf8456..0dbdca3b 100644 --- a/share/grafx2/scripts/pic_ni_GlassGridFilter.lua +++ b/share/grafx2/scripts/pic_ni_GlassGridFilter.lua @@ -1,4 +1,12 @@ --- ? +-- Glass grid filter + +-- 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 + w,h=getpicturesize(); for y1=0,h-1,8 do for x1=0,w-1,8 do diff --git a/share/grafx2/scripts/pic_ni_Grid8.lua b/share/grafx2/scripts/pic_ni_Grid8.lua index 52c2965b..29a9e925 100644 --- a/share/grafx2/scripts/pic_ni_Grid8.lua +++ b/share/grafx2/scripts/pic_ni_Grid8.lua @@ -1,4 +1,12 @@ -- Draw 8x8 grid + +-- 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 + w,h=getpicturesize(); for y=0,h-1,1 do for x=0,w-1,8 do diff --git a/share/grafx2/scripts/pic_ni_Grid8red.lua b/share/grafx2/scripts/pic_ni_Grid8red.lua index a7e8828a..70172aea 100644 --- a/share/grafx2/scripts/pic_ni_Grid8red.lua +++ b/share/grafx2/scripts/pic_ni_Grid8red.lua @@ -1,4 +1,12 @@ -- Draw red 8x8 grid + +-- 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 + w,h=getpicturesize(); c=matchcolor(0xFF,0x00,0x00) for y=0,h-1,1 do diff --git a/share/grafx2/scripts/pic_ni_GridIso.lua b/share/grafx2/scripts/pic_ni_GridIso.lua index edae4162..89e3ad22 100644 --- a/share/grafx2/scripts/pic_ni_GridIso.lua +++ b/share/grafx2/scripts/pic_ni_GridIso.lua @@ -1,4 +1,12 @@ -- Draw isometric grid + +-- 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 + w,h=getpicturesize(); for y=0,h-1,8 do for x=0,w-1,1 do diff --git a/share/grafx2/scripts/pic_ni_PaletteX1.lua b/share/grafx2/scripts/pic_ni_PaletteX1.lua index c25b73d1..78e97752 100644 --- a/share/grafx2/scripts/pic_ni_PaletteX1.lua +++ b/share/grafx2/scripts/pic_ni_PaletteX1.lua @@ -1,4 +1,12 @@ -- x1 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 + w,h=getpicturesize(); for y1=0,7,1 do for x1=0,31,1 do diff --git a/share/grafx2/scripts/pic_ni_PaletteX8.lua b/share/grafx2/scripts/pic_ni_PaletteX8.lua index c6fd10dd..1e4c5466 100644 --- a/share/grafx2/scripts/pic_ni_PaletteX8.lua +++ b/share/grafx2/scripts/pic_ni_PaletteX8.lua @@ -1,4 +1,12 @@ -- 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 + setpicturesize(256,64); for y1=0,7,1 do for x1=0,31,1 do