Function: w32-tty-get-pixel

w32-tty-get-pixel is a byte-compiled function defined in w32console.el.gz.

Signature

(w32-tty-get-pixel INDEX)

Documentation

Convert a legacy color INDEX (0..15) into a pixel value.

Source Code

;; Defined in /usr/src/emacs/lisp/term/w32console.el.gz
;; tty-color-define swaps indices for pixel values on 24bit display
(defun w32-tty-get-pixel (index)
  "Convert a legacy color INDEX (0..15) into a pixel value."
  (let ((color (nth index w32-tty-standard-colors)))
    (or (tty-color-24bit (cddr color)) index)))