MCPcopy Create free account
hub / github.com/cifertech/DisplayKit / clamp

Function clamp

server/tft_gif_core.py:56–57  ·  view source on GitHub ↗
(value: int, lo: int, hi: int)

Source from the content-addressed store, hash-verified

54
55
56def clamp(value: int, lo: int, hi: int) -> int:
57 return max(lo, min(hi, value))
58
59
60def bool_from_mode(value: str | bool, frame: Image.Image) -> bool:

Callers 2

load_source_framesFunction · 0.70
dither_adjustFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected