()
| 894 | } |
| 895 | |
| 896 | function generateColor() { |
| 897 | if (!config.RAINBOW_MODE) { |
| 898 | return hexToRGB(config.COLOR); |
| 899 | } |
| 900 | let c = HSVtoRGB(Math.random(), 1.0, 1.0); |
| 901 | c.r *= 0.15; |
| 902 | c.g *= 0.15; |
| 903 | c.b *= 0.15; |
| 904 | return c; |
| 905 | } |
| 906 | |
| 907 | function HSVtoRGB(h, s, v) { |
| 908 | let r, g, b, i, f, p, q, t; |
no test coverage detected