Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alignoth/alignoth
/ cf
Function
cf
resources/vega.min.js:9153–9155 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
9151
return
isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
9152
}
9153
function
cf(t) {
9154
return
Math.max(0, Math.min(255, Math.round(t) || 0));
9155
}
9156
function
ff(t) {
9157
return
((t = cf(t)) < 16 ?
"0"
:
""
) + t.toString(16);
9158
}
Callers
3
uf
Function · 0.70
ff
Function · 0.70
clamp
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected