Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
var
dialog;
5
6
function
wrap(x, n) {
7
if
(x < 0)
8
return
((x % n + n) % n) | 0;
9
return
((x + n) % n) | 0;
10
}
11
12
const
effects = [
13
// horizontal oscillation
Callers
1
PerLineOscillation.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected