Previous: Color Instance Properties, Up: Colors


49.3.4 Color Convenience Functions

— Function: color-name color &optional domain

This function returns the name of the color in the specified domain, if any. color should be a color specifier object and domain is normally a window and defaults to the selected window if omitted. This is equivalent to using specifier-instance and applying color-instance-name to the result.

— Function: color-rgb-components color &optional domain

This function returns the rgb components of the color in the specified domain, if any. color should be a color specifier object and domain is normally a window and defaults to the selected window if omitted. This is equivalent to using specifier-instance and applying color-instance-rgb-components to the result.

          (color-rgb-components (face-background 'default (next-window)))
              ⇒ (65535 58596 46517)