title: How does javafx compares colors?
body: <p>For school we need to make the game called memory, but mine isn't really working fine. I already have all the cards and they can also turn around but I don't know how you can javafx compares the colors and turning the cards back if the colors does not mach or let the cards dissapear if the colors do mach. Can you guys please help me? This is a little part of the code:</p>
  
  <pre><code>d = Rectangle {
  width: bind 150
  height: bind 150
  x: bind 500
  y: bind 20
  arcWidth: 20
  arcHeight: 20
  fill:  Color.GREEN
  stroke: Color.BLACK
  strokeWidth: 1.0
  onMouseClicked:function(a: MouseEvent)
          {
             if(d.fill == Color.GREEN)
              d.fill = Color1.YELLOW
           else
              d.fill = Color.GREEN
          }
  }
   if(Color1.equals("yellow"))
               &amp;&amp; (Color2.equals("yellow"))
   {
    d.setVisible(false);
    j.setVisible(false);
  
   }
  </code></pre>