This file is from Wikimedia Commons and may be used by other projects.
The description on its file description page there is shown below.
Summary
DescriptionStella octangula circle packing.svg
English: Four mutually-tangent circles (black) and another four mutually-tangent circles that pass perpendicularly through the same points of tangency (black). When lifted to a sphere by a conformal azimuthal projection, these circles lie on the face planes of a stellated octahedron.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse
Source code
fromSVGimportSVG,colorsimportsysrad=100# radius of large two circlesmargin=10# extra space around boundary of imageheight=2*(rad+margin)width=(2+2**0.5)*rad+2*marginbbox=width+1j*heightsvg=SVG(bbox,sys.stdout)x1=2**0.5/2*radx2=rad-x1y2=abs(x1-x2)scale=x2/(x1+rad)circles=[(bbox/2-x1,rad),(bbox/2-x2+1j*y2,y2),(bbox/2-x2-1j*y2,y2),(bbox/2+x1*scale,rad*scale)]svg.group(fill="none")svg.group(stroke=colors.black)for(c,r)incircles:svg.circle(c,r)svg.ungroup()svg.group(stroke=colors.blue)for(c,r)incircles:svg.circle(bbox-c,r)svg.ungroup()svg.ungroup()svg.close()
Captions
Eight circles that, when lifted to a sphere, lie on the face planes of a stellated octahedron