Print a table of pixel RGB values.
(pixels: list[list[int]])
| 131 | |
| 132 | |
| 133 | def _print_pixel_table(pixels: list[list[int]]) -> None: |
| 134 | """Print a table of pixel RGB values.""" |
| 135 | print(f"\n {'Index':<8}{'R':<6}{'G':<6}{'B':<6}") |
| 136 | print(f" {'─' * 26}") |
| 137 | for i, px in enumerate(pixels): |
| 138 | r, g, b = px[0], px[1], px[2] |
| 139 | print(f" {i:<8}{r:<6}{g:<6}{b:<6}") |
| 140 | |
| 141 | |
| 142 | async def run_device_decode_autoresearch( |
no test coverage detected