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