-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.Remap
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Remap input value within input range to output range
| Parameter | Default Value | Note |
|---|---|---|
| value | 0 | |
| inputStart | 0 | |
| inputEnd | 1 | |
| outputStart | 0 | |
| outputEnd | 1 |
| Condition | Return Value |
|---|---|
| (always) | number |
// Convert a 0-1 t value into a screen-space x range of 100-700
x = raylib.Remap(0.5, 0, 1, 100, 700)
print x // 400