Legendre Transformation explained (with Animation)