Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
325
function
clamp01 (input) {
326
return
Math.min(Math.max(input, 0), 1);
327
}
328
329
function
textureToCanvas (texture, width, height) {
330
let
captureCanvas = document.createElement(
'canvas'
);
Callers
1
normalizeTexture
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected