login

drawpoly.gs

Top / GrADS / script / drawpoly.gs

Japanese / English

Name

drawpoly - Draw polygon.

Synopsis

drawpoly
  [-by type]
  [-o] [-f] [-rgb r g b] [-rgba r g b a] [-color color]
  x1 y1 x2 y2 ...

Description

To show help, simply run "color".

Options

-by type
Coordinate type. "world", "grid", or "xy". Defalut value is "xy".
-o
Open polygon.
-f
Filled polygon.
-rgb
RGB values in [0-255].
-rgba
RGB and transparency values in [0-255].
-color
Color number in [0-255].
x1, y1, ...
Position of the vertex of the polygon.

Examples

(1) Draw polygon.

ga-> drawpoly 3 3 5 5 4 7 8 3

Script source code