Learn R Programming

RGtk2 (version 2.8.8)

gdkColorParse: gdkColorParse

Description

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.

Usage

gdkColorParse(spec)

Arguments

spec
[character] the string specifying the color.

Value

  • A list containing the following elements:
  • retval[integer] TRUE if the parsing succeeded.
  • color[GdkColor] the GdkColor to fill in