def circularlerp(value, start, end):
    """
    Circular Lerp interpolation
    Wraps around to get closest path (0.0 = 1.0)
    """
    shortest_path = (end - start + 0.5) % 1.0 - 0.5
    result = (start + shortest_path * value) % 1.0
    return result
