title: How to turn a tkinter canvas circle shape into an image
body: <p>image 1:</p>
  <p><a href="https://i.stack.imgur.com/P49Pb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P49Pb.png" alt="enter image description here" /></a></p>
  <p>image 2:</p>
  <p><a href="https://i.stack.imgur.com/vtTj5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vtTj5.png" alt="enter image description here" /></a></p>
  <p>I want to turn a tkinter canvas shape into an image. How do I do it?</p>
  <p>Python Code</p>
  <pre><code>class Bricks:
      def __init__(self, canvas, color):
          self.canvas = canvas
          self.id = canvas.create_oval(5, 5, 25, 25, fill=color, width=2)
  </code></pre>
  <p>Source
  <a href="https://codingshiksha.com/python/python-3-tkinter-script-to-build-a-bubble-shooter-game-gui-desktop-app-full-project-for-beginners/" rel="nofollow noreferrer">enter link description here</a></p>