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

Function normalizeColor

script.js:1597–1604  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

1595}
1596
1597function normalizeColor (input) {
1598 let output = {
1599 r: input.r / 255,
1600 g: input.g / 255,
1601 b: input.b / 255
1602 };
1603 return output;
1604}
1605
1606function wrap (value, min, max) {
1607 let range = max - min;

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected