$drawPolygon

Draws a closed polygon.
Syntax
    see Documentation
DocumentationDraws a closed polygon:

    $drawPolygon{x1}{y1}{x2}{y2} ... {xn}{yn}

    Parameters:
      (x1, y1) through (xn, yn), the coordinates of the corners of the polygon to be drawn.

    $drawPolygon{x1 y1 x2 y2 ... xn yn}

    Parameters:
      (x1, y1) through (xn, yn), a '$\ ' separated list of the coordinates of the corners of the polygon to be drawn.
    Note:
      the template using this function must have the content type 'image/gif' or 'image/jpeg'.
Examples
    $createImage{200}{200}
    $setDrawColor{black}
    $fillRectangle{0}{0}{199}{199}
    $setDrawColor{white}
    $drawPolygon {100 100 50 150 150 150}

    Result:
    an image with a width of 200/200; within a black rectangle with the size 199/199;
    and a white resembles thigh triangle appears
GroupGraphic
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters <unlimited>