A set of drawing helper functions I've accumulated over time.