Prof Philip Willmott, the author of the book 'Introduction to Synchrotron Radiation: techniques and applications' (second edition, John Wiley & Sons, Chichester, 2019. ISBN: 9781119280392), makes the scripts for the simulations and animations available to the public.
This website provides a free source of animations related to x-ray physics and synchrotron science. The movies were created using matlab. Associated with each animation is a description of the physics, parameters, and, if required, relevant equations involved in its creation. Most of the movies also link to their matlab codes. For educational animations of all things synchrotron please click here.