Playing with Colors
In this chapter, you will learn:
- How colors are represented in JavaFX
- What different color patterns are
- How to use image pattern
- How to use linear color gradient
- How to use radial color gradient
In JavaFX, you can specify color for text and background color for regions. You can specify a color as a uniform color, an image pattern, or a color gradient. A uniform color uses the same color to fill the entire region. An image pattern lets you fill a region with an image pattern. A color gradient defines a color pattern in which the color varies along a straight line from one color to another. The ...