Color represents color values used throughout JDance. It supports CSS color strings, RGB channels, and alpha transparency for backgrounds and other styling.
For the complete API reference, visit https://doc.jdance.org.
Named colors and hexadecimal strings are convenient when matching an established palette. Numeric RGB values are useful when colors come from calculations or stored channel data.
The preview above uses a small amount of space so the behavior is visible even in a narrow documentation panel.
A four-channel color adds alpha transparency. With a partially transparent background, the color behind the component contributes to the final appearance.
Foreground and background colors should remain easy to distinguish. Color can indicate information, success or caution, but it should not be the sole carrier of meaning.
The same idea can also be expressed as a compact Java snippet without requiring a live preview.
For predictable results, use opaque foreground text and reserve transparency for accents and layered backgrounds.
These examples focus on the day-to-day use of Color. The full API documentation contains additional options, inherited properties and complete method signatures.
Visit https://doc.jdance.org for the full reference.