问题
How do I develop a gradient in JavaFX that looks like the one below?
回答1:
Use linear-gradient
in CSS
:
linear-gradient(to
(top, right, bottom, left),
(color begin),
(color finish));
-fx-background-color: linear-gradient(to top,-color-amber, transparent);
来源:https://stackoverflow.com/questions/40532924/gradient-in-javafx