6 int RrColorParse(struct RrInstance *inst, const char *colorname,
11 if (!XParseColor(RrDisplay(inst), RrColormap(inst), colorname, &xcol)) {
12 RrDebug("unable to parse color '%s'", colorname);
19 ret->r = (xcol.red >> 8) / 255.0;
20 ret->g = (xcol.green >> 8) / 255.0;
21 ret->b = (xcol.blue >> 8) / 255.0;