(draw: ImageDraw.ImageDraw, y0: int, y1: int)
| 145 | |
| 146 | |
| 147 | def draw_axis(draw: ImageDraw.ImageDraw, y0: int, y1: int) -> None: |
| 148 | for tick in range(60, 101, 10): |
| 149 | x = x_pos(float(tick)) |
| 150 | draw.line((x, y0, x, y1), fill=COLORS["grid"], width=2) |
| 151 | draw_text_center(draw, (x, y0 - 28), str(tick), F_TICK, COLORS["muted"]) |
| 152 | draw.line((AXIS_L, y0, AXIS_R, y0), fill=COLORS["axis"], width=2) |
| 153 | draw.line((AXIS_L, y1, AXIS_R, y1), fill=COLORS["axis"], width=2) |
| 154 | draw_text_center(draw, ((AXIS_L + AXIS_R) / 2, y0 - 78), "Score (0-100)", F_SUBTITLE, COLORS["muted"]) |
| 155 | |
| 156 | |
| 157 | def draw_group_chip(draw: ImageDraw.ImageDraw, x: int, y: int, group: str) -> None: |
no test coverage detected