This idea was taken from a MAV (Maths Association of Victoria) workshop which was lead by Dr Ng Wee Leng (Nanyang Technological University, Singapore). His approach was to use the TI-Nspire calculator, but I thought it would be nice to see it animated on free software such as GeoGebra.