Package: gdk

Function gdk-color-parse

Lambda List

gdk-color-parse (spec)

Arguments

spec -- a string specifying the color

Return Value

The gdk-color color or nil if the parsing did not succeed.

Details

Parses a textual specification of a color and fill in the red, green, and blue fields of a gdk-color color.

The string can either one of a large set of standard names taken from the X11 rgb.txt file, or it can be a hex value in the form #rgb, #rrggbb, #rrrgggbbb or #rrrrggggbbbb where r, g and b are hex digits of the red, green, and blue components of the color, respectively. White in the four forms is #fff, #ffffff, #fffffffff and #ffffffffffff.

Warning

The gdk-color-parse function has been deprecated since version 3.14 and should not be used in newly written code. Use the gdk-rgba color.
 

See also

2021-12-11