title: Can you return the color of a rectangle object in java?
body: <p>For example, I create a rectangle object and set its fill to black. Would I be able to check the fill color of the rectangle to determine if its white or black? Something like:</p>
  
  <pre><code>Rectangle r = new Rectangle(10.0, 10.0, 10.0, 10.0);
  
  if (r.getFill == 'BLACK') {
      r.setFill(Color.'PURPLE');
  }
  </code></pre>