Implement gfx functions circle, filled circle, rectangle, filled rectangle, polygon, filled polygon.