Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradient in JavaFX

How do I develop a gradient in JavaFX that looks like the one below?

enter image description here

like image 628
Stardust Avatar asked Nov 25 '25 10:11

Stardust


1 Answers

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);
like image 174
Marckaraujo Avatar answered Nov 27 '25 22:11

Marckaraujo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!