Rendering successive reflections of a circle in a single inversion circle is not so interesting because reflection of the circle’s reflection is the circle itself; successive reflections simply bounce back and forth. It is more interesting to reflect a circle in several inversion circles. In the following program, five different inversion circles are depicted by thin red cylinders (the inversionCircles checkbox toggles visibility of these inversion circles), and the reflection circles are depicted by the closed disk comprising the circle’s interior and boundary.
The slider labeled n sets the recursion level for reflections. Set randomColors to assign each level its own random color. Setting yields just the original seed circle whose position is set by dragging and whose radius is set by the GUI slider. Setting yields together with its reflection in each inversion circle, five reflections in all. Setting yields 25 more reflection circles since each level 1 circle yields five reflections, although five of them coincide with .