Galperin's billiards - NYTimes Wordplay explanation

The NYTimes Wordplay blog gives a sketch of a proof that Galperin's Billiards actually gives you digits of π (Link)
This applet fleshes out that sketch a bit more. (Here r is the ratio of the balls' masses.)

Ben Reiniger, March 14, 2015, Created with GeoGebra.