(color, lightness=.94)
| 104 | |
| 105 | |
| 106 | def lightness(color, lightness=.94): |
| 107 | rgb = np.array([color.r, color.g, color.b]) / 255 |
| 108 | h, _, s = rgb_to_hls(*rgb) |
| 109 | rgb = (np.array(hls_to_rgb(h, lightness, s)) * 255).astype(int) |
| 110 | return RGB(*rgb) |
| 111 | |
| 112 | |
| 113 | _MAX_CANDLES = 10_000 |
no outgoing calls
no test coverage detected