index.html
来自「linux图形界面x liberary手册」· HTML 代码 · 共 88 行
HTML
88 行
<HTML><HEAD><TITLE>Xlib Programming Manual: Color Strings</TITLE></HEAD><BODY><H1 ALIGN=center>6.2 Color Strings</H1>Xlib provides a mechanism for using string names for colors.A color string may either contain an abstract color nameor a numerical color specification.Color strings are case-insensitive.<P>Color strings are used in the following functions:<UL><P><LI><B><A HREF="../XAllocNamedColor.html">XAllocNamedColor()</A></B><P><LI><B><A HREF="../XcmsAllocNamedColor.html">XcmsAllocNamedColor()</A></B><P><LI><B><A HREF="../XLookupColor.html">XLookupColor()</A></B><P><LI><B><A HREF="../XcmsLookupColor.html">XcmsLookupColor()</A></B><P><LI><B><A HREF="../XParseColor.html">XParseColor()</A></B><P><LI><B><A HREF="../XStoreNamedColor.html">XStoreNamedColor()</A></B></UL><P>Xlib supports the use of abstract color names, for example, red or blue.A value for this abstract name is obtained by searching one or more colorname databases.Xlib first searches zero or more client-side databases;the number, location, and content of these databases isimplementation dependent and might depend on the current locale.If the name is not found, Xlib then looks for the color in theX server's database.If the color name is not in the Host Portable Character Encodingthe result is implementation dependent.<P>A numerical color specificationconsists of a color space name and a set of values in the following syntax:<P><CODE><I><color_space_name></I>:<I><value>/.../<value></I></CODE><P>The following are examples of valid color strings.<P><CODE><PRE>"CIEXYZ:0.3227/0.28133/0.2493""RGBi:1.0/0.0/0.0""rgb:00/ff/00""CIELuv:50.0/0.0/0.0"</CODE></PRE><P>The syntax and semantics of numerical specifications are givenfor each standard color space in the following sections.<H5 ALIGN=right><I>Next: <A HREF="rgb.html">RGB Device String Specification</A></I></H5><HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?