(idx: int)
| 211 | |
| 212 | |
| 213 | def panel_position(idx: int) -> tuple[int, int]: |
| 214 | row = idx // 2 |
| 215 | col = idx % 2 |
| 216 | x = MARGIN_X + col * (PANEL_W + PANEL_GAP_X) |
| 217 | y = MARGIN_TOP + row * (PANEL_H + PANEL_GAP_Y) |
| 218 | return x, y |
| 219 | |
| 220 | |
| 221 | def draw_panel(draw: ImageDraw.ImageDraw, idx: int, panel: dict[str, str]) -> None: |
no outgoing calls
no test coverage detected