This function constrains a value between a lower and upper limit.
Parameters:
The closest value to the input value that is between the specified minimum and maximum will be returned.
Clamp(307, 0, 255)
Note: The required libraries have been assumed to be already imported.