The code also used a neat approximation to draw circles. Instead of using sin and cos for rotating along the edge of the circle to draw it, it simply used x (~= sin(x) for small values) and 1-x^2/2 (a Taylor series approximation derived from cos(x) = sqrt(1-sin(x)^2)), respectively.