MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / generateColor

Function generateColor

src/tailwind/Animations/SplashCursor/SplashCursor.jsx:892–901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 4

updateColorsFunction · 0.70
clickSplatFunction · 0.70
updatePointerDownDataFunction · 0.70
SplashCursorFunction · 0.70

Calls 2

hexToRGBFunction · 0.70
HSVtoRGBFunction · 0.70

Tested by

no test coverage detected