gdkColorParse {RGtk2} | R Documentation |
Parses a textual specification of a color and fill in
the red
,
green
, and
blue
fields of a
GdkColor
structure. The color is not
allocated, you must call gdkColormapAllocColor
yourself.
The text string can be in any of the forms accepted
by xparsecolor
; these include
name for a color from ‘rgb.txt’, such as
DarkSlateGray
, or a hex specification
such as #3050b2
or #35b
.
gdkColorParse(spec)
|
[character] the string specifying the color. |
A list containing the following elements:
retval |
[logical] TRUE if the parsing succeeded. |
|
[GdkColor ] the GdkColor to fill in |
Derived by RGtkGen from GTK+ documentation