The animated simulation of an ideal gas