Code example for Canvas

Methods: drawRect, drawText, restoreToCount, saveLayer