@staticmethod
def in_out_quad(progress):
    """.. image:: images/anim_in_out_quad.png
        """
    p = progress * 2
    if p < 1:
        return 0.5 * p * p
    p -= 1.0
    return -0.5 * (p * (p - 2.0) - 1.0)
