| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Create Polygon from values...</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 | Create Polygon from values... |
| 13 | </b></font></table></table> |
| 14 | <p>Creates a <a href="Polygon.html">Polygon</a> from user-supplied x–y pairs (“points” or “vertices”).</p> |
| 15 | <h2>Settings</h2> |
| 16 | <dl> |
| 17 | <dt><b>Name</b> |
| 18 | <dd>defines the name of the resulting Polygon.</dd> |
| 19 | <dt><b>X values</b> |
| 20 | <dd>the X-coordinates of the vertices of the Polygon.</dd> |
| 21 | <dt><b>Y values</b> |
| 22 | <dd>the Y-coordinates of the vertices of the Polygon.</dd> |
| 23 | </dl> |
| 24 | <h2>Example</h2> |
| 25 | <p>The command <b>Create Polygon from values: "triangle", "0 50 20", "0 10 80"</b> defines a Polygon with the three points (0, 0), (50, 10), and (20, 80). In the figure the three points are indicated with open circles while the Polygon is drawn as a closed figure.</p> |
| 26 | <code> Create Polygon from values: "triangle", "0 50 20", "0 10 80"<br></code> |
| 27 | <code> Draw circles: 0, 0, 0, 0, 3<br></code> |
| 28 | <code> Draw closed: 0, 0, 0, 0<br></code> |
| 29 | <p align=middle><img height=400 width=400 src=Create_Polygon_from_values____1.png></p><h3>Links to this page</h3> |
| 30 | <ul> |
| 31 | <li><a href="New_menu.html">New menu</a> |
| 32 | </ul> |
| 33 | <hr> |
| 34 | <address> |
| 35 | <p>© David Weenink & Paul Boersma 2023-01-16</p> |
| 36 | </address> |
| 37 | </body> |
| 38 | </html> |