Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / clampScore

Function: clampScore() โ€‹

clampScore(s, lo, hi, ctx?): void

Defined in: core/frontend/nodes/fixed.ts:135

s = max(min(s, hi), lo) - one /compute on 26.3+, the < hi ; > lo pair below it.

Parameters โ€‹

s โ€‹

Score

lo โ€‹

Score

hi โ€‹

Score

ctx? โ€‹

FunctionContext

Returns โ€‹

void

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.