MCPcopy Create free account
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / correctDeltaY

Function correctDeltaY

script.js:1559–1563  ·  view source on GitHub ↗
(delta)

Source from the content-addressed store, hash-verified

1557}
1558
1559function correctDeltaY (delta) {
1560 let aspectRatio = canvas.width / canvas.height;
1561 if (aspectRatio > 1) delta /= aspectRatio;
1562 return delta;
1563}
1564
1565function generateColor () {
1566 let c = HSVtoRGB(Math.random(), 1.0, 1.0);

Callers 1

updatePointerMoveDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected