Return the PDF operator to paint a path. Parameters ---------- fill : bool Fill the path with the fill color. stroke : bool Stroke the outline of the path with the line color.
(cls, fill, stroke)
| 481 | |
| 482 | @classmethod |
| 483 | def paint_path(cls, fill, stroke): |
| 484 | """ |
| 485 | Return the PDF operator to paint a path. |
| 486 | |
| 487 | Parameters |
| 488 | ---------- |
| 489 | fill : bool |
| 490 | Fill the path with the fill color. |
| 491 | stroke : bool |
| 492 | Stroke the outline of the path with the line color. |
| 493 | """ |
| 494 | if stroke: |
| 495 | if fill: |
| 496 | return cls.fill_stroke |
| 497 | else: |
| 498 | return cls.stroke |
| 499 | else: |
| 500 | if fill: |
| 501 | return cls.fill |
| 502 | else: |
| 503 | return cls.endpath |
| 504 | |
| 505 | |
| 506 | class Stream: |
no outgoing calls
no test coverage detected