This chapter explains to draw various shapes. These basic building blocks are further combined to create desired drawings. In this chapter we will cover:
Drawing rectangles
Drawing triangles
Drawing circles
Drawing gradients
Working with custom shapes and styles
Demonstrating translation, rotation, and scaling
Drawing an ellipse
Saving and restoring canvas state
Demonstrating compositions
Drawing a mouse