NewRectangle x1:Int, y1:Int, x2:Int, y2:Int,
  [color:Int, tag:Int, expire:Int]

Create new rectangle drawing. On a wrapped map, the coordinates will be adjusted so that the rectangle spans the minimum area, possibly by crossing a map seam.

The color is an integer between 0 and 30, and selects the color. The tag is a value between 0 and 32767 you can use to identify your drawings, usually this value is created using Atom.

expire defines the time-of-expiry for the game as a turn number: if the current turn number is larger than this value, the drawing is automatically deleted. Thus, set expire=0 to make drawings only visible for the current session. expire=-1 is the default, drawings with this value never expire.

Since: PCC 1.0.5, PCC2 1.99.9

See also: NewCircle, NewLine, NewRectangleRaw, NewMarker, Global Commands