Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PageBot/PageBot
/ to255
Function
to255
Lib/pagebot/mathematics/__init__.py:42–43 ·
view source on GitHub ↗
(values)
Source
from the content-addressed store, hash-verified
40
return
min(255, max(0, int(round(value*255.0))))
41
42
def
to255(values):
43
return
[round(val * 255)
for
val in values]
44
45
def
to100(values):
46
return
[round(val * 100)
for
val in values]
Callers
1
getFlatRGB
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected