def centerToTopLeft(pointXY, screenXY, flipY=True):
    """
    Takes a coordinate given in a centered reference frame and transforms it
    to topLeft based coordiantes. Switches from (0,0) as center to
    (0,0) as topLeft

    Parameters
    ----------
    pointXY : tuple
        The center-based coordinate which is to be transformed
    screenXY : tuple, ints
        The (x,y) dimensions of the grid or screen
    flipY : Bool
        If True, flips the y coordinates

    Returns
    -------
    newPos : tuple
        The (x,y) position in topLeft based coordinates

    Examples
    --------
    >>> newPos = centerToTopLeft((100,100), (1920,1080), False)
    >>> newPos
    (1060, 640)

    """
    newX = pointXY[0] + (screenXY[0] / 2)
    if not flipY:
        newY = pointXY[1] + (screenXY[1] / 2)
    else:
        newY = (pointXY[1] * -1) + (screenXY[1] / 2)
    return newX, newY