def rgba_to_int(r: int, g: int, b: int, a: int) -> int:
    """Use int.from_bytes to convert a color tuple.

    >>> print(rgba_to_int(0, 0, 0, 0))
    0
    >>> print(rgba_to_int(0, 1, 135, 4))
    100100
    """
    return int.from_bytes([r, g, b, a], byteorder="big", signed=True)