Function: artist-sline
artist-sline is a byte-compiled function defined in artist.el.gz.
Signature
(artist-sline X1 Y1 X2 Y2)
Documentation
Create a straight line from X1,Y1 to X2,Y2.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-sline (x1 y1 x2 y2)
"Create a straight line from X1,Y1 to X2,Y2."
(let* ((direction (artist-find-direction x1 y1 x2 y2))
(length (artist-straight-calculate-length direction x1 y1 x2 y2))
(line (make-vector (+ length 4) x1)))
;; not needed:
;; (aset line 0 x1)
;; because we set all elements to x1
(aset line 1 y1)
(aset line 2 length)
(aset line 3 direction)
line))