Code example for Canvas

Methods: drawRect, restore, save, translate