Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
def
clamp(value: int, lo: int, hi: int) -> int:
57
return
max(lo, min(hi, value))
58
59
60
def
bool_from_mode(value: str | bool, frame: Image.Image) -> bool:
Callers
2
load_source_frames
Function · 0.70
dither_adjust
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected