Function: svg-polygon
svg-polygon is a byte-compiled function defined in svg.el.gz.
Signature
(svg-polygon SVG POINTS &rest ARGS)
Documentation
Create a polygon going through POINTS on SVG.
POINTS is a list of x/y pairs.
Source Code
;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-polygon (svg points &rest args)
"Create a polygon going through POINTS on SVG.
POINTS is a list of x/y pairs."
(svg--append
svg
(dom-node
'polygon
`((points . ,(mapconcat (lambda (pair)
(format "%s %s" (car pair) (cdr pair)))
points
", "))
,@(svg--arguments svg args)))))