
Overview of Item Types
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

Copyright Computer Science Department, The University of New Mexico