-
-
Couldn't load subscription status.
- Fork 4.2k
Labels
A-AnimationMake things move and change over timeMake things move and change over timeA-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possible
Milestone
Description
There are four sections to this issue:
- Implement
Animatablefor all of our color types. - Implement
Point(in the sense ofbevy_mathfor all of our color types. - Figure out the correct way to handle color addition/subtraction and scalar multiplication and division.
- Add examples demonstrating color animation
Our options for handling alpha during color addition and subtraction from #12163 (comment):
- Average: leads to fairly surprising behavior, non-associative.
- Use the left-hand alpha: fairly surprising, non-commutative.
- Set the alpha to 1: very surprising, associative and commutative.
- Don't support adding colors with alpha: panic, remove the implementation, or create a set of alpha-free colors.
- Just add and subtract alpha like RGB: simple, but leads to values outside of 0-1.0 very easily.
- Apply alpha blending: a little more expensive, probably well-behaved.
Metadata
Metadata
Assignees
Labels
A-AnimationMake things move and change over timeMake things move and change over timeA-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possible