'keyword'>clamp</span>(v, 0, 100)   <span class='comment'>// n is 0</span>

v = 130
n = <span class='keyword'>clamp</span>(v, 0, 100)   <span class='comment'>// n is 100</span>

v = -50
n = <span class='keyword'>clamp</span>(v, 100, 0)   <span class='comment'>// n is 100</span>
</div></div></div><div id='16' class='function'>lerp(v1,v2,time)<div class='desc'>Returns the linear interpolation between <span class='inline_code'>v1</span> and <span class='inline_code'>v2</span> base on <span class='inline_code'>