MCPcopy 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
374def _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
380def _rgb_to_gray(rgb):

Callers 2

_color_from_numFunction · 0.85
_color_from_rgbFunction · 0.85

Calls 1

tupleFunction · 0.50

Tested by

no test coverage detected