Map value from the range [start, end] to the range [0, 1]
// Map a health value (0-200) to the 0-1 range health = 150 t = raylib.Normalize(health, 0, 200) print t // 0.75
There was an error while loading. Please reload this page.