If you would like to do some archaeology, the QuickDraw source code can be downloaded here: http://www.computerhistory.org/highlights/macpaint/
It's really nicely structured and has lots of comments!
EDIT: The code is in the BumpOval procedure in DrawArc.a