| 4946 | } |
| 4947 | |
| 4948 | int PSL_setlinewidth (struct PSL_CTRL *PSL, double linewidth) { |
| 4949 | if (linewidth < 0.0) { |
| 4950 | PSL_message (PSL, PSL_MSG_ERROR, "Warning: Selected linewidth is negative (%g), ignored\n", linewidth); |
| 4951 | return (PSL_BAD_WIDTH); |
| 4952 | } |
| 4953 | if (linewidth == PSL->current.linewidth) return (PSL_NO_ERROR); |
| 4954 | |
| 4955 | PSL_command (PSL, "%d W\n", psl_ip (PSL, linewidth)); |
| 4956 | PSL->current.linewidth = linewidth; |
| 4957 | return (PSL_NO_ERROR); |
| 4958 | } |
| 4959 | |
| 4960 | int PSL_setcolor (struct PSL_CTRL *PSL, double rgb[], int mode) { |
| 4961 | /* Set the pen (PSL_IS_STROKE) color or fill (PSL_IS_FILL) color or pattern |
no test coverage detected