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

Function PSL_defpen

src/postscriptlight.c:6053–6057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6051}
6052
6053int PSL_defpen (struct PSL_CTRL *PSL, const char *param, double linewidth, char *style, double offset, double rgb[]) {
6054 /* Function to set line pen attributes. We force any transparency change since this is all inside a gsave/hrestore */
6055 PSL_command (PSL, "/%s {%d W %s %s} def\n", param, psl_ip (PSL, linewidth), psl_putcolor (PSL, rgb, 1), psl_putdash (PSL, style, offset));
6056 return (PSL_NO_ERROR);
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));

Callers 13

gmtplot_draw_mag_roseFunction · 0.85
gmtplot_draw_dir_roseFunction · 0.85
gmt_xy_axisFunction · 0.85
gmt_draw_custom_symbolFunction · 0.85
gmt_textpath_initFunction · 0.85
PSL_defpen_Function · 0.85
psscale_plot_cycleFunction · 0.85
GMT_psroseFunction · 0.85
GMT_grdvectorFunction · 0.85
psxy_plot_end_vectorsFunction · 0.85
GMT_psxyFunction · 0.85
GMT_psxyzFunction · 0.85

Calls 4

PSL_commandFunction · 0.85
psl_ipFunction · 0.85
psl_putcolorFunction · 0.85
psl_putdashFunction · 0.85

Tested by

no test coverage detected