MCPcopy Create free account
hub / github.com/anomalyco/opencode / clamp

Function clamp

packages/ui/src/theme/v2/resolve.ts:25–27  ·  view source on GitHub ↗
(v: number, min: number, max: number)

Source from the content-addressed store, hash-verified

23}
24
25function clamp(v: number, min: number, max: number) {
26 return Math.max(min, Math.min(max, v))
27}
28
29/** v2 ramps: 100 = lightest, 1200 = darkest — wider spread than v1 `generateScale`. */
30function generateV2HueScale(seed: HexColor, isDark: boolean): HexColor[] {

Callers 1

generateV2HueScaleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected