(self, r, g, b, store=True)
| 446 | return False |
| 447 | |
| 448 | def set_color(self, r, g, b, store=True): |
| 449 | if (r, g, b) != self.color: |
| 450 | self._pswriter.write(f"{_nums_to_str(r)} setgray\n" |
| 451 | if r == g == b else |
| 452 | f"{_nums_to_str(r, g, b)} setrgbcolor\n") |
| 453 | if store: |
| 454 | self.color = (r, g, b) |
| 455 | |
| 456 | def set_linewidth(self, linewidth, store=True): |
| 457 | linewidth = float(linewidth) |