Skip to content

raylib.Normalize

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Normalize input value within input range

Parameters

Parameter Default Value Note
value 0
start 0
end 1

Return value

Condition Return Value
(always) number

Notes

Example

// Map a health value (0-200) to the 0-1 range
health = 150
t = raylib.Normalize(health, 0, 200)
print t  // 0.75

Clone this wiki locally