Edited wiki page LuaDrawing through web user interface.
--- 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()
</code>
-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