Function: svg-polyline

svg-polyline is a byte-compiled function defined in svg.el.gz.

Signature

(svg-polyline SVG POINTS &rest ARGS)

Documentation

Create a polyline going through POINTS on SVG.

POINTS is a list of x/y pairs.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-polyline (svg points &rest args)
  "Create a polyline going through POINTS on SVG.
POINTS is a list of x/y pairs."
  (svg--append
   svg
   (dom-node
    'polyline
    `((points . ,(mapconcat (lambda (pair)
			      (format "%s %s" (car pair) (cdr pair)))
			    points
			    ", "))
      ,@(svg--arguments svg args)))))