MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / wrap

Function wrap

data/scripts/examples/PerLineOscillation.js:6–10  ·  view source on GitHub ↗
(x, n)

Source from the content-addressed store, hash-verified

4var dialog;
5
6function wrap(x, n) {
7 if (x < 0)
8 return ((x % n + n) % n) | 0;
9 return ((x + n) % n) | 0;
10}
11
12const effects = [
13 // horizontal oscillation

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected