You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Wrap input value from min to max
Parameters
Parameter
Default Value
Note
value
0
min
0
max
1
Return value
Condition
Return Value
(always)
number
Notes
Example
// Keep an angle in the range [0, 360)angle=370wrapped=raylib.Wrap(angle, 0, 360)
printwrapped// 10// Wrap a negative valuewrapped2=raylib.Wrap(-10, 0, 360)
printwrapped2// 350