def get_rgb_from_int(rgb_int):
    """Convert an rgb int color to its red, green and blue colors.

    Values are used ranging from 0 to 255 for each of the components.

    Important:
        Unlike Java, the TRNSYS Studio will want an integer where bits 0-7 are
        the blue value, 8-15 the green, and 16-23 the red.

    Examples:
        Get the rgb tuple from a an rgb int.

        >>> get_rgb_from_int(9534163)
        (211, 122, 145)

    Args:
        rgb_int (int): An rgb int representation.

    Returns:
        (tuple): (r, g, b) tuple.
    """
    red = rgb_int & 255
    green = (rgb_int >> 8) & 255
    blue = (rgb_int >> 16) & 255
    return red, green, blue