# HG changeset patch # User unC0Rr@gmail.com # Date 1340473625 0 # Node ID 6ca639109e952ea370f7804772216fcccc8a2825 # Parent 770f7cffcb45835732e0a705b50c9712486f8f39 Created wiki page through web user interface. diff -r 770f7cffcb45 -r 6ca639109e95 DrawnMapFormat.wiki --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DrawnMapFormat.wiki Sat Jun 23 17:47:05 2012 +0000 @@ -0,0 +1,15 @@ +Drawn map is described by a list of points, which define polylines to draw and format of each polyline. + +Point is defined as +|| Big-endian int16 || Big-endian int16 || Byte || +|| *X* coordinate || *Y* coordinate || *flags* || + +where *flags* are: +|| 8th bit || 7th bit || 6th-1st bits || +|| if set, this is a first point of polyline || if set, polyline is erasing || *width*(thickness) of line || + +where *width* defines `(width * 10) + 6` pixels width line to draw + +Second and further points of polyline have 8th bit of *flags* unset, the content of others doesn't matter. + +Single-point polyline defines a circle (well, that's kinda obvious). \ No newline at end of file