Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EmbeddedRPC/erpc
/ _6cube_to_rgb
Function
_6cube_to_rgb
scripts/kconfig/menuconfig.py:374–377 ·
view source on GitHub ↗
(r6g6b6)
Source
from the content-addressed store, hash-verified
372
373
374
def
_6cube_to_rgb(r6g6b6):
375
# Returns the 888 RGB color for a 666 xterm color cube index
376
377
return
tuple(0
if
x == 0
else
40*x + 55
for
x in r6g6b6)
378
379
380
def
_rgb_to_gray(rgb):
Callers
2
_color_from_num
Function · 0.85
_color_from_rgb
Function · 0.85
Calls
1
tuple
Function · 0.50
Tested by
no test coverage detected