MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / PSL_defcolor

Function PSL_defcolor

src/postscriptlight.c:6059–6062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6057}
6058
6059int PSL_defcolor (struct PSL_CTRL *PSL, const char *param, double rgb[]) {
6060 PSL_command (PSL, "/%s {%s} def\n", param, psl_putcolor (PSL, rgb, 0));
6061 return (PSL_NO_ERROR);
6062}
6063
6064/* Helpers to make sure fp is closed and tmp_file is removed on return. */
6065#define Return1(x) {code = x; fclose (fp); return (code);}

Callers 2

gmt_textpath_initFunction · 0.85
PSL_defcolor_Function · 0.85

Calls 2

PSL_commandFunction · 0.85
psl_putcolorFunction · 0.85

Tested by

no test coverage detected