?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/color.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:12 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/color.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\204 \302\303\304!\305_!\210\300\207" [boundp float-pi (lambda (#1=#:def-tmp-var) (defconst float-pi #1# "The value of Pi (3.1415926...).")) atan 1 4] 3) #@478 Convert COLOR string to a list of normalized RGB components. COLOR should be a color name (e.g. "white") or an RGB triplet string (e.g. "#ff12ec"). Normally the return value is a list of three floating-point numbers, (RED GREEN BLUE), each between 0.0 and 1.0 inclusive. Optional argument FRAME specifies the frame where the color is to be displayed. If FRAME is omitted or nil, use the selected frame. If FRAME cannot display COLOR, return nil. (fn COLOR &optional FRAME) (defalias 'color-name-to-rgb #[513 "\300\301\302!@!\303\304\305\306\307\310!\311\"\312\313%\301\"\"\207" [float color-values "#ffffff" mapcar make-byte-code 257 "\211\300\245\207" vconcat vector [] 3 "\n\n(fn X)"] 10 (#$ . 725)]) #@151 Return hexadecimal notation for the color RED GREEN BLUE. RED, GREEN, and BLUE should be numbers between 0.0 and 1.0, inclusive. (fn RED GREEN BLUE) (defalias 'color-rgb-to-hex #[771 "\300\301\302_\302_\302_$\207" [format "#%02x%02x%02x" 255] 9 (#$ . 1443)]) #@200 Return the color that is the complement of COLOR-NAME. COLOR-NAME should be a string naming a color (e.g. "white"), or a string specifying a color's RGB components (e.g. "#ff12ec"). (fn COLOR-NAME) (defalias 'color-complement #[257 "\301!\302@Z\303\211A@)Z\304AA@ZE\207" [x color-name-to-rgb 1.0 1.0 1.0] 7 (#$ . 1713)]) #@235 Return a list with STEP-NUMBER colors from START to STOP. The color list builds a color gradient starting at color START to color STOP. It does not include the START and STOP color in the resulting list. (fn START STOP STEP-NUMBER) (defalias 'color-gradient #[771 "@A@\3008@ZT\245A@ZT\245\3008ZT\245\301\302\211W\203Q \211 \\\211\262 \\\211\262 \\\211\262EB\262\210\211T\262\202% \266\211\237\207" [2 nil 0] 17 (#$ . 2047)]) #@84 Compute hue from V1 and V2 H. Used internally by `color-hsl-to-rgb'. (fn V1 V2 H) (defalias 'color-hue-to-rgb #[771 "\211\300W\203 \301Z\302#\\\207\211\303W\203 \207\211\304W\203* \301Z\305Z\306#\\\207\207" [0.16666666666666666 * 6.0 0.5 0.6666666666666666 0.6666666666666666 6.0] 8 (#$ . 2513)]) #@233 Convert hue, saturation and luminance to their RGB representation. H, S, and L should each be numbers between 0.0 and 1.0, inclusive. Return a list (RED GREEN BLUE), where each element is between 0.0 and 1.0, inclusive. (fn H S L) (defalias 'color-hsl-to-rgb #[771 "\300U\203 \211\211E\207\211\301X\203 \211\302\\_\202 \211\\_Z\303_Z\304\305\306\\\307\"#\304#\304\305\n\310Z\307\"#E\207" [0.0 0.5 1.0 2.0 color-hue-to-rgb mod 0.3333333333333333 1 0.3333333333333333] 13 (#$ . 2830)]) #@86 Return the color that is the complement of COLOR, in hexadecimal format. (fn COLOR) (defalias 'color-complement-hex #[257 "\300\301\302!\"\207" [apply color-rgb-to-hex color-complement] 5 (#$ . 3343)]) #@264 Convert RGB color components to HSV. RED, GREEN, and BLUE should each be numbers between 0.0 and 1.0, inclusive. Return a list (HUE SATURATION VALUE), where HUE is in radians and both SATURATION and VALUE are between 0.0 and 1.0, inclusive. (fn RED GREEN BLUE) (defalias 'color-rgb-to-hsv #[771 "\301!\301!\301!]]^^Z\302W\203\"