shape

Draws the outline of a shape using the current color. For valid x and y values, please see plot.

The function takes a variable number of arguments that indicates pairs of x and y values that make up the corner of the shape. There must be at least six arguments (three points).

Usage

    shape(x1, y1, x2, y2, x3, y3);
    shape(x1, y1, x2, y2, x3, y3, x4, y4, x5, y5);