def value2Tuple4(v):
    """Answers a tuple of 4 values. Can be used for colors and rectangles.

    >>> value2Tuple4(123)
    (123, 123, 123, 123)
    >>> value2Tuple4((2,3))
    (2, 3, 2, 3)
    >>> value2Tuple4((2,3,4,5))
    (2, 3, 4, 5)
    """
    if not isinstance(v, (list, tuple)):
        v = [v]
    if len(v) == 1:
        return v[0], v[0], v[0], v[0]
    if len(v) == 2:
        return v[0], v[1], v[0], v[1]
    if len(v) == 4:
        return v
    raise ValueError