Simply call the appropriate API providing the radius and the number of recursion steps. For example:

  1. /api/circles/3/5
    Will return the circles defining the 2D Apollonian Gasket for an outer circle with a radius of 3, using a recursion level of 5.
  2. /api/spheres/5/7
    Will return the spheres defining the 3D Apollonian Packing for an outer sphere with a radius of 5, using a recursion level of 7.
Apollonian Gasket

Apollonian Gaskets

For more information regarding Apollonian Gaskets, see this page on Wikipedia.

Apollonian Packing

Apollonian Packing

For more information regarding Apollonian Packing, see this page on Wikipedia.