# HG changeset patch # User kyberneticist@gmail.com # Date 1350704206 0 # Node ID 903c90df0e5dd4ae5f957c7e164cf7dfb43c472e # Parent 9c815950568d4249a72a2b1235c5269fedc23563 Edited wiki page LuaDrawing through web user interface. diff -r 9c815950568d -r 903c90df0e5d LuaDrawing.wiki --- a/LuaDrawing.wiki Fri Oct 19 21:27:25 2012 +0000 +++ b/LuaDrawing.wiki Sat Oct 20 03:36:46 2012 +0000 @@ -12,12 +12,12 @@ PointsBuffer = '' -- A string to accumulate points in function AddPoint(x, y, width, erase) PointsBuffer = PointsBuffer .. string.char(band(x,0xff00) / 256 , band(x,0xff) , band(y,0xff00) / 256 , band(y,0xff)) - if size then - size = bor(size,0x80) + if width then + width = bor(size,0x80) if erase then - size = bor(size,0x40) + width = bor(size,0x40) end - PointsBuffer = PointsBuffer .. string.char(size) + PointsBuffer = PointsBuffer .. string.char(width) else PointsBuffer = PointsBuffer .. string.char(0) end @@ -50,6 +50,7 @@ AddPoint(2000,100,10) AddPoint(100,2000) AddPoint(1000,1000,63,true) + AddPoint(1000,1000,20) for i = 63,2,-4 do AddPoint(2000,1000,i) @@ -84,4 +85,4 @@ end FlushPoints() -This one fills the map with solid land, and draws 3 circular erased points in it. \ No newline at end of file +This one fills the map with solid land, and draws 4 circular erased points in it. \ No newline at end of file