Skip to content

raylib.Remap

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Remap input value within input range to output range

Parameters

Parameter Default Value Note
value 0
inputStart 0
inputEnd 1
outputStart 0
outputEnd 1

Return value

Condition Return Value
(always) number

Notes

Example

// 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

Clone this wiki locally