Overview of Item Types

Polygon Items

Items of type polygon appear as polygonal regions on the display. Each polygon may have an outline (pen color), a fill, or both. Polygon are created with widget commands of the following form:

pathName create polygon [x1 y1... xn yn [option value option value ...]]

The arguments x1, y1, ..., xn, and yn specify the coordinates of the vertices of the polygon. If a polygon is created without any points, it will not be rendered until some points are added with the coords command. After the coordinates there may be any number of option-value pairs, each of which sets one of the configuration options for the item. These same option-value pairs may be used in itemconfigure widget commands to change the item's configuration. The following options are supported for polygons:

-fill [23] Specifies fill color of item

-joinstyle [32] Specifies how to draw the joints within multi-point lines

-pen [45] Specifies pen color of item

-penwidth [46] Specifies width of pen


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility