Implement all non-trivial color traits on Color
type
#13214
Labels
A-Color
Color spaces and color math
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Enhancement
A new feature
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
X-Contentious
There are nontrivial implications that should be thought through
Milestone
What problem does this solve or what need does it fill?
If #12212 is closed as won't fix, the developer experience of working with our assorted fields is much worse than it needs to be.
Rather than simply being able to call:
they must write
What solution would you like?
If an operation is supported in the supplied color space, call the corresponding method.
If it is not, convert to the most reasonable color space for that operation (usually Oklaba), perform the operation, and then convert back.
What alternative(s) have you considered?
We could choose a single opinionated perceptual color space for working with all parts of UI code.
This is limiting, and particularly painful since it would force const definitions for palettes to be done directly in that color space. This isn't feasible because of limitations on const float arithmetic and const traits.
The text was updated successfully, but these errors were encountered: