diff -r 0b93b3ec3ebf -r 3d03892b7545 LuaDrawing.wiki --- a/LuaDrawing.wiki Fri Oct 19 21:10:21 2012 +0000 +++ b/LuaDrawing.wiki Fri Oct 19 21:20:47 2012 +0000 @@ -33,8 +33,10 @@ end end -AddPoint takes an x and y location for the point, a size (required to start a line) and erase (whether the line is erasing from the map) -FlushPoints writes out any values from PointsBuffer that had not already been sent to the engine. It would be called at the end of a drawing session. +AddPoint takes an x and y location for the point, a size (required to start a line) and erase (whether the line is erasing from the map). The size is the "width" value from [[DrawnMapFormat]]. + +FlushPoints writes out any values from PointsBuffer that have not already been sent to the engine. +It would be called at the end of a drawing session. A simple example below. @@ -69,4 +71,16 @@ The first set of AddPoints draws a large X and erases the centre. The following loop draws a set of nested points, alternating erasure and fill, which results in a set of concentric circles. -The 2nd loop draws a web of lines and frames it using some final AddPoints. \ No newline at end of file +The 2nd loop draws a web of lines and frames it using some final AddPoints. + +Another brief example. + + for i = 200,2000,600 do + AddPoint(1,i,63) + AddPoint(4000,i) + end + for i = 500,3500,1000 do + AddPoint(i,1000,63,true) + end + +This one fills the map with solid land, and draws 3 circular erased points in it. \ No newline at end of file