Basically, it’s a collection of points attached by springs that make a circle around a point. Each point is connected to its neighbors and its neighbor’s neighbors. Furthermore, each point is connected to the center of the circle with another spring. The resting length of each spring is the natural distance between each point if it were a circle, so it always tries to go back to its original shape.

With this complete, I just use canvas polygon drawing to draw a polygon using each point of the “circle” as a point of the polygon. Then, fill with the texture of your choice!

]]>