title: How do I add an image inside a rectangle or a circle in JavaFX?
body: <p>Suppose we have a rectangle called r</p>
  
  <pre><code>Rectangle r = new Rectangle(40, 20);
  </code></pre>
  
  <p>and an image called image</p>
  
  <pre><code>Image image = new Image("...src for image");
  </code></pre>
  
  <p>How do I fit the image inside the rectangle? Also, how can I make the image move if the rectangle moves too? How do I do the same thing for a circle? Code examples are greatly appreciated. </p>
  
  <p>P.S. Jewelsea, I'm waiting for you, lol!</p>