title: Fill the complete canvas but keep the bound fill area as it is like circle, rectangle
body: <p>possible duplicate</p>
  
  <p>Hello friends,</p>
  
  <p>I creating paint application, I have problem in that. If I draw the rectangle without fill and or another like bound area and change the background color then rectangle fill area also change means whole canvas color will be filled with the new background color. How to keep the background or fill the canvas area which was not bound, here is the image </p>
  
  <p>this is the initial image</p>
  
  <p><img src="https://i.stack.imgur.com/J2fuI.png" alt="enter image description here"></p>
  
  <p>after change the background color getting this result</p>
  
  <p><img src="https://i.stack.imgur.com/ktWLk.png" alt="enter image description here"></p>
  
  <p>but how to getting like this way</p>
  
  <p><img src="https://i.stack.imgur.com/QJxFp.png" alt="enter image description here"></p>