LinearGradient only interpolates in RGB under the covers so it won't
help you for interpolating in the other color spaces.
The regular Java ColorSpace has built-in support for a couple of color
spaces, but their implementations are not in the base classes, they farm
out the actual conversions
java.awt.color.ColorSpace (and ICC_ColorSpace) only provide an empty
implementation and constants for the conversion between color spaces, but
no specific implementation (at least for HSL, LAB, et cetera).
Conversion: Interestingly the implementations in the wild rarely reference
the source of the
JavaFX has no color conversion libraries. The classes in java.awt.color
are the only alternative that ships standard with the JDK...
...jim
On 9/25/15 7:42 AM, Benjamin Gudehus wrote:
Hey!
I want to convert colors between different color spaces and interpolate
them wi
Hey!
I want to convert colors between different color spaces and interpolate
them within the specific color space (sRGB and its cylindrical
transformations HSL/HLS, HSV/HSB, and HSI. LAB and its cylindrical
transformations LCH, and HCL).
javafx.scene.paint.Color only accepts (s)RGB and HSB and se