Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

javafx object rectangle


rectangle.setFill(Model.Materials.AIR.getColor());
Color rectangleColor = (Color) rectangle.getFill();
rectangle.setOnMouseClicked(event -> rectangle.setFill(model.nextMaterialColor(rectangleColor)));

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #javafx #object #rectangle
ADD COMMENT
Topic
Name
9+5 =