hex_to_rgb

lib.image.hex_to_rgb(hex_code)

Convert a hex number to it’s RGB counterpart.

Parameters:

hex_code (str) – The hex code to convert (e.g. “#0d25ac”)

Returns:

The hex code as a 3 integer (R, G, B) tuple

Return type:

tuple