Skip to content

Add Support for YUV Color Models #101

@Chris3606

Description

@Chris3606

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions