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

Function clamp01

script.js:325–327  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

323}
324
325function clamp01 (input) {
326 return Math.min(Math.max(input, 0), 1);
327}
328
329function textureToCanvas (texture, width, height) {
330 let captureCanvas = document.createElement('canvas');

Callers 1

normalizeTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected