I want to put the color XML element of a Sphere PhongMaterial in a CSS. The JavaFX CSS documentation here does not even list Sphere. An internet search came up empty.
Question 1) Are CSSs supported with JavaFX 3D?
Question 2) If yes what is the format?
The below does not work...
.SimulationDepictionPane {
-fx-diffuseColorPhongMaterial-color: green;
}
This is what works in the FXML file...
<Sphere fx:id="workstation" radius="15.0" GridPane.columnIndex="3" GridPane.halignment="CENTER" GridPane.rowIndex="4" GridPane.valignment="CENTER">
<material>
<PhongMaterial>
<diffuseColor>
<Color green="1.0" opacity="1.0" />
</diffuseColor>
</PhongMaterial>
</material>
</Sphere>