For each *key, value* pair in *kwargs*, check that *value* is color-like.
(**kwargs)
| 269 | |
| 270 | |
| 271 | def _check_color_like(**kwargs): |
| 272 | """ |
| 273 | For each *key, value* pair in *kwargs*, check that *value* is color-like. |
| 274 | """ |
| 275 | for k, v in kwargs.items(): |
| 276 | if not is_color_like(v): |
| 277 | raise ValueError( |
| 278 | f"{v!r} is not a valid value for {k}: supported inputs are " |
| 279 | f"(r, g, b) and (r, g, b, a) 0-1 float tuples; " |
| 280 | f"'#rrggbb', '#rrggbbaa', '#rgb', '#rgba' strings; " |
| 281 | f"named color strings; " |
| 282 | f"string reprs of 0-1 floats for grayscale values; " |
| 283 | f"'C0', 'C1', ... strings for colors of the color cycle; " |
| 284 | f"and pairs combining one of the above with an alpha value") |
| 285 | |
| 286 | |
| 287 | def same_color(c1, c2): |
nothing calls this directly
no test coverage detected
searching dependent graphs…