MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / generateColor

Function generateColor

script.js:1565–1571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1563}
1564
1565function generateColor () {
1566 let c = HSVtoRGB(Math.random(), 1.0, 1.0);
1567 c.r *= 0.15;
1568 c.g *= 0.15;
1569 c.b *= 0.15;
1570 return c;
1571}
1572
1573function HSVtoRGB (h, s, v) {
1574 let r, g, b, i, f, p, q, t;

Callers 3

updateColorsFunction · 0.85
multipleSplatsFunction · 0.85
updatePointerDownDataFunction · 0.85

Calls 1

HSVtoRGBFunction · 0.85

Tested by

no test coverage detected