title: Canvas in different shapes with fabricjs plugin
body: <p>I am trying to set canvas shape to circle and any other on click of button . but normal clip is not working with fabricjs . can you please share simple canvas shape example for my reference ?</p>
  
  <p>i am using fabricjs , i tried below code and many more but nothing worked .</p>
  
  <pre><code>canvas.clipTo = function(ctx) {
       // clip to a circle circle
       ctx.rect(10,20,300,200);
       ctx.stroke();
       }; 
  </code></pre>