Convert the :mpltype:`color` *c* to an RGB color tuple. If c has an alpha channel value specified, that is silently dropped.
(c)
| 544 | |
| 545 | |
| 546 | def to_rgb(c): |
| 547 | """ |
| 548 | Convert the :mpltype:`color` *c* to an RGB color tuple. |
| 549 | |
| 550 | If c has an alpha channel value specified, that is silently dropped. |
| 551 | """ |
| 552 | return to_rgba(c)[:3] |
| 553 | |
| 554 | |
| 555 | def to_hex(c, keep_alpha=False): |
searching dependent graphs…