def to_argb_int(diffuse_colour) -> int:
    """Converts an RGBA array to an ARGB integer"""
    diffuse_colour = diffuse_colour[-1:] + diffuse_colour[:3]
    diffuse_colour = [int(val * 255) for val in diffuse_colour]

    return int.from_bytes(diffuse_colour, byteorder="big", signed=True)