Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: FxObj
Wraps JavaFX Color, an immutable representation of a color in the sRGB color space. Colors are used for fills, strokes, backgrounds, and text throughout JavaFX. This class provides factory methods to create a color from a web hex string or from individual red, green, and blue channel values, each with an optional alpha transparency value.
Color (string Val = null, double Alpha = 1.0)
Creates a new Color object with the provied optional hex string and alpha double values.
Val is an optional string with the web hex value to set. (ex. #ffffff)Alpha is an optional double between 0 and 1 with the alpha value.this objectweb (string Val, double Alpha = 1.0)
Set the color value ith the provied hex string and optional alpha double values.
Val is an optional string with the web hex value to set. (ex. #ffffff)Alpha is an optional double between 0 and 1 with the alpha value.this objectrgb (double Red, double Blue, double Green)
Set the color value ith the provied red blue green values.
Red is a double with the red part. (0.0-255.0)Blue is a double with the blue part. (0.0-255.0)Green is a double with the green part. (0.0-255.0)this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.