-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Currently, the API provided only allows you to create colors based on the RGB color model (either by specifying RGBA color values direction in compliance with RGBA32, or by specifying HSL/HSV color values).
It may be useful to provide support for other color models (YUV, primarily). In theory, it should be possible to implement basic support for this without changing the representation of Color; instead, functions could be provided that do the conversion.
A more ideal model would provide separate color classes (or at least easy and consistent access to packed values) for various color models so that it is more easily possible to do things like write renderer-specific shaders that use those values directly; but this may be beyond the scope of a simple addition.
One particularly interesting YUV color model is OkLab. Java support has been implemented in the colorful-gdx, and can provide a basic reference point.
There are other YUV color spaces that may be useful as well.