netbeans - How does javafx compares colors? -
for school need make game called memory, mine isn't working fine. have cards , can turn around don't know how can javafx compares colors , turning cards if colors not mach or let cards dissapear if colors mach. can guys please me? little part of 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")) && (color2.equals("yellow")) { d.setvisible(false); j.setvisible(false); } versions 2.x javafx obiously partly open source ( stack overflow reference ). link found source code equals() method in color class versions 2.x : /** * indicates whether other object "equal to" one. * @param obj refere...