Because the hot air will move up and the cold air will goes down. And it will help the cup move around.
Therefore, we can see the pictures or words we draw on the cup that started to move like a simple animation.
In last Friday's kids coding class, the kids designed and built their first computer program. They learned that programs are simple lists of instructions.