Gradient in JavaFX
Asked Answered
S

1

3

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

enter image description here

Stich answered 10/11, 2016 at 16:48 Comment(1)
V
8

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);
Vogler answered 21/6, 2017 at 13:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.