| 4826 | } |
| 4827 | |
| 4828 | int PSL_plotbox (struct PSL_CTRL *PSL, double x0, double y0, double x1, double y1) { |
| 4829 | /* Draw rectangle with corners (x0,y0) and (x1,y1) */ |
| 4830 | int llx, lly; |
| 4831 | llx = psl_ix (PSL, x0); |
| 4832 | lly = psl_iy (PSL, y0); |
| 4833 | PSL_command (PSL, "%d %d %d %d Sb\n", psl_iy (PSL, y1) - lly, psl_ix (PSL, x1) - llx, llx, lly); |
| 4834 | return (PSL_NO_ERROR); |
| 4835 | } |
| 4836 | |
| 4837 | int PSL_plotpolygon (struct PSL_CTRL *PSL, double *x, double *y, int n) { |
| 4838 | /* Draw and optionally fill polygons. If 20 or fewer points we use |
no test coverage detected