It just shows that a "Lot of Prep" can be "machine learning" to the observer.
Just calculate all the effects up front and then draw them "in real time" :)
IIRC, the "this X does not exist" sites also don't run ML on request, but serve cached images. At least that was my impression from getting the same image more than once when I spammed F5 fast enough.