Incircle packing — Fantastic Fractal Explorer

Incircle packing

Every triangle has one circle inside it that touches all three sides: its incircle. Its center is where the three lines halving the corners' angles meet.

The incircle sits in every corner at once, touching the two sides that meet there. So each corner holds a chain of circles running into the vertex. Beyond the incircle, a smaller circle touches the same two sides and the incircle, then a smaller one, and so on. Each is the one before shrunk towards the vertex by the same factor,

for the angle at that corner. A sharp corner holds a long chain of slowly shrinking circles, and a wide one a short chain of fast shrinking ones. In an equilateral triangle every angle is 60°, and each circle of a chain is a third the size of the one before.

Each pair of neighbors in a chain leaves a gap with curved sides against each side of the triangle, and one circle fits in it, touching all three. That leaves three smaller gaps, and each is filled the same way, without end, as in the gasket on a line. The circles never overlap, and the triangle is never crossed.

The triangle packing starts from three circles and finds the triangle around them; this one starts from the triangle and needs only one circle. Drag the three vertices. The incircle and the packing follow. A drag stops before any corner gets sharper than 2°, where the chain would grow too long to draw.

Colors

The colors follow the same rule as the Apollonian gasket. The sides have the value 0 and the incircle 1. Each new circle gets the average of the three it touches, weighted by curvature to the power , times the ratio ; a circle of a corner's chain touches the circle before it and the two sides. A side has curvature 0, so at it does not count at all, and the colors step along each chain as they do down the gaps.