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

Function gmt_fill_syntax

src/gmt_init.c:8740–8764  ·  view source on GitHub ↗

! . \param GMT ... \param option ... \param string ... */

Source from the content-addressed store, hash-verified

8738 \param string ...
8739*/
8740void gmt_fill_syntax (struct GMT_CTRL *GMT, char option, char *longoption, char *string) {
8741 struct GMTAPI_CTRL *API = GMT->parent;
8742 if (string[0] == ' ') {
8743 if (longoption)
8744 GMT_Report (GMT->parent, GMT_MSG_ERROR, "Option -%s parsing failure. Correct syntax:\n", longoption);
8745 else
8746 GMT_Report (GMT->parent, GMT_MSG_ERROR, "Option -%c parsing failure. Correct syntax:\n", option);
8747 }
8748 if (longoption)
8749 GMT_Usage (API, 1, "\n-%s<fill>", longoption);
8750 else
8751 GMT_Usage (API, 1, "\n-%c<fill>", option);
8752 GMT_Usage (API, -2, "%s Specify <fill> as one of:", string);
8753 GMT_Usage (API, 3, "%s <gray> or <red>/<green>/<blue>, all in the range 0-255.", GMT_LINE_BULLET);
8754 GMT_Usage (API, 3, "%s #rrggbb, all in the range 0-255 using hexadecimal numbers.", GMT_LINE_BULLET);
8755 GMT_Usage (API, 3, "%s <cyan>/<magenta>/<yellow>/<black> in range 0-100%%.", GMT_LINE_BULLET);
8756 GMT_Usage (API, 3, "%s <hue>-<saturation>-<value> in ranges 0-360, 0-1, 0-1.", GMT_LINE_BULLET);
8757 GMT_Usage (API, 3, "%s A valid color name.", GMT_LINE_BULLET);
8758 GMT_Usage (API, 3, "%s P|p<pattern>[+b<color>][+f<color>][+r<dpi>]. "
8759 "Give <pattern> number from 1-90 or a filename. Optional modifiers:", GMT_LINE_BULLET);
8760 GMT_Usage (API, 4, "+r Specify the <dpi> of the pattern [%g]. ", PSL_DOTS_PER_INCH_PATTERN);
8761 GMT_Usage (API, 4, "+b Change the background <color> (no <color> sets transparency).");
8762 GMT_Usage (API, 4, "+f Change the foreground <color> (no <color> sets transparency).");
8763 GMT_Usage (API, -2, "For PDF fill transparency, append @<transparency> in the range 0-100 [0 = opaque].");
8764}
8765
8766/*! .
8767 \param GMT ...

Callers 15

usageFunction · 0.85
parseFunction · 0.85
usageFunction · 0.85
parseFunction · 0.85
usageFunction · 0.85
usageFunction · 0.85
parseFunction · 0.85
usageFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
gmt_DCW_parseFunction · 0.85

Calls 2

GMT_ReportFunction · 0.85
GMT_UsageFunction · 0.85

Tested by

no test coverage detected