MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / _hex_to_rgb

Function _hex_to_rgb

PySimpleGUI/PySimpleGUI.py:20155–20158  ·  view source on GitHub ↗
(hex)

Source from the content-addressed store, hash-verified

20153
20154
20155def _hex_to_rgb(hex):
20156 hex = hex.lstrip('#')
20157 hlen = len(hex)
20158 return tuple(int(hex[i:i + hlen // 3], 16) for i in range(0, hlen, hlen // 3))
20159
20160
20161def _rgb_to_hsl(r, g, b):

Callers 1

_hex_to_hslFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected