(path, options)
| 1737 | }); |
| 1738 | |
| 1739 | function drawpath(path, options) { |
| 1740 | /* Draws the given Path (or list of PathElements). |
| 1741 | * The current stroke, strokewidth, strokestyle and fill color are applied. |
| 1742 | */ |
| 1743 | if (path instanceof Array) { |
| 1744 | path = new Path(path); |
| 1745 | } |
| 1746 | path.draw(options); |
| 1747 | } |
| 1748 | |
| 1749 | function autoclosepath(close) { |
| 1750 | /* Paths constructed with beginpath() and endpath() are automatically closed. |