1681-engine / ui / clamp
Function: clamp() ​
ts
function clamp(
v,
min,
max
): number;Defined in: src/ui/layout/geometry.ts:51
1681 Engine's UI module (1681-engine/ui): canvas widgets drawn with Pixi on the stage's screen layer, a bridge for a UI written in the DOM or React over the canvas, and the pure layout maths both use. A game that draws no UI through the engine never ships it.
Parameters ​
| Parameter | Type |
|---|---|
v | number |
min | number |
max | number |
Returns ​
number