1. Customize brush style If you want to add color to the shape map, you need to use the following two important attributes.
fillStyle: Set the default color for all fill operations.
strokeStyle: Set the default color for all stroke operations.
2. Draw a rectangle with color and transparency
HTML5
3. Drawing effect