def complex_to_coord(num, flip=600):
    """
    Transform a complex number to pygame coordinate.

    Parameters
    ----------
    num : complex
        The complex number to transformm.
    flip : int, optional
        The height of the drawing, or the height of the original
        pygame window. That is, the maximum value that num.complex can
        have. Used to flip the coordinate over the x-axis to comply with
        how the pygame coordinate system works. The default is 600.

    Returns
    -------
    x : float
        The x-coordinate.
    y : float
        The y-coordinate.

    """
    x = num.real
    y = flip - num.imag
    return (x,y)