(color: tuple[int, int, int])
| 220 | y1, y2 = slope * x1 + intercept, slope * x2 + intercept |
| 221 | |
| 222 | def rgb(color: tuple[int, int, int]) -> str: |
| 223 | return f"rgb({color[0]},{color[1]},{color[2]})" |
| 224 | |
| 225 | parts = [ |
| 226 | f'<svg xmlns="http://www.w3.org/2000/svg" width="{W}" height="{H}" viewBox="0 0 {W} {H}">', |