File Exchange

image thumbnail

2D Apollonian gasket with four identical circles

version (3.22 KB) by Guillaume JACQUENOT
Plot a 2D apollonian gasket with 4 identical circles


Updated 18 Aug 2007

View License

In mathematics, an Apollonian gasket or Apollonian net is a fractal generated from three circles, any two of which are tangent to one another
The method used to create the Apollonian gasket is based on circle inversion, which is a geometrical transformation acting with a reference circle that modifies points.
% In the plane, the inverse of a point P in respect to a circle of center O and radius R is a point P' such that P and P' are on the same ray going from O, and OP times OP' equals the radius squared
OP * OP' =R²

Cite As

Guillaume JACQUENOT (2020). 2D Apollonian gasket with four identical circles (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)


Thank you very much ! Useful and beautiful !

Nicolas Douillet

Nice piece of code.


Very good. Thx.
Here is link to this code in wikibooks/

Gerardo Honorato

is just that i wanted, thanks. Very usefull.

Olivier Dunoix

Good but useless, you already published "2D Apollonian gasket with n identical circles" which can deal 4 circles and which is more generic

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux