Variable: artist-direction-info

artist-direction-info is a variable defined in artist.el.gz.

Value

[[1 0 45]
 [1 1 92]
 [0 1 124]
 [-1 1 47]
 [-1 0 45]
 [-1 -1 92]
 [0 -1 124]
 [1 -1 47]]

Documentation

Table used for stepping x and y coordinates in a specific direction.

This table is also used for determining which char to use for that direction.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
;; Things for drawing horizontal, vertical and diagonal (straight) lines.
;;
;; A line here is a vector:
;; [ start-x start-y length direction saved-char-1 saved-char-2 ... ]
;; directions start with 0 at the x-axis and counts anti clockwise.
;;
(defvar artist-direction-info
  ;;   x  y char
  [ [  1  0 ?- ]			; direction 0
    [  1  1 ?\\ ]			; direction 1
    [  0  1 ?| ]			; direction 2
    [ -1  1 ?/ ]			; direction 3
    [ -1  0 ?- ]			; direction 4
    [ -1 -1 ?\\ ]			; direction 5
    [  0 -1 ?| ]			; direction 6
    [  1 -1 ?/ ] ]			; direction 7
  "Table used for stepping x and y coordinates in a specific direction.
This table is also used for determining which char to use for that direction.")