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