Polygon implements the Plotter interface, drawing a polygon.
| 15 | |
| 16 | // Polygon implements the Plotter interface, drawing a polygon. |
| 17 | type Polygon struct { |
| 18 | // XYs is a copy of the vertices of this polygon. |
| 19 | // Each item in the array holds one ring in the |
| 20 | // Polygon. |
| 21 | XYs []XYs |
| 22 | |
| 23 | // LineStyle is the style of the line around the edge |
| 24 | // of the polygon. |
| 25 | draw.LineStyle |
| 26 | |
| 27 | // Color is the fill color of the polygon. |
| 28 | Color color.Color |
| 29 | } |
| 30 | |
| 31 | // NewPolygon returns a polygon that uses the default line style and |
| 32 | // no fill color, where xys are the rings of the polygon. |
nothing calls this directly
no outgoing calls
no test coverage detected