bevy/crates
Lynn 887bc27a6f
Animatable for colors (#12614)
# Objective

- Fixes #12202 

## Solution

- Implements `Animatable` for all color types implementing arithmetic
operations.
  - the colors returned by `Animatable`s methods are already clamped.
- Adds a `color_animation.rs` example.
- Implements the `*Assign` operators for color types that already had
the corresponding operators. This is just a 'nice to have' and I am
happy to remove this if it's not wanted.

---

## Changelog

- `bevy_animation` now depends on `bevy_color`.
- `LinearRgba`, `Laba`, `Oklaba` and `Xyza` implement `Animatable`.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Zachary Harrold <zac@harrold.com.au>
2024-03-22 00:06:24 +00:00
..
bevy_a11y Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_animation Animatable for colors (#12614) 2024-03-22 00:06:24 +00:00
bevy_app Add "all-features = true" to docs.rs metadata for most crates (#12366) 2024-03-08 20:03:09 +00:00
bevy_asset Add path function to ProcessContext (#12636) 2024-03-21 23:58:54 +00:00
bevy_audio Use async-fn in traits rather than BoxedFuture (#12550) 2024-03-18 17:56:57 +00:00
bevy_color Animatable for colors (#12614) 2024-03-22 00:06:24 +00:00
bevy_core Add "all-features = true" to docs.rs metadata for most crates (#12366) 2024-03-08 20:03:09 +00:00
bevy_core_pipeline Explain Camera2dBundle.projection needs to be set carefully (#11115) 2024-03-18 17:35:33 +00:00
bevy_derive Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_dev_tools Always spawn fps_overlay on top of everything (#12586) 2024-03-20 13:11:48 +00:00
bevy_diagnostic Handle NaNs in diagnostics (#12633) 2024-03-21 21:26:53 +00:00
bevy_dylib Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_dynamic_plugin Document all members of bevy_dynamic_plugin (#12029) 2024-02-22 13:28:52 +00:00
bevy_ecs Fix Ci failing over dead code in tests (#12623) 2024-03-21 18:08:47 +00:00
bevy_ecs_compile_fail_tests Fix Ci failing over dead code in tests (#12623) 2024-03-21 18:08:47 +00:00
bevy_encase_derive Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_gilrs Send GamepadEvent for gamepads connected at startup (#12424) 2024-03-11 20:05:10 +00:00
bevy_gizmos Gizmo 3d grids (#12430) 2024-03-13 18:51:53 +00:00
bevy_gltf Use async-fn in traits rather than BoxedFuture (#12550) 2024-03-18 17:56:57 +00:00
bevy_hierarchy Fix Ci failing over dead code in tests (#12623) 2024-03-21 18:08:47 +00:00
bevy_input Add table showing complexity of methods for Input (#10126) 2024-03-10 23:00:20 +00:00
bevy_internal refactor: separate out PanicHandlerPlugin (#12557) 2024-03-19 00:56:49 +00:00
bevy_log refactor: separate out PanicHandlerPlugin (#12557) 2024-03-19 00:56:49 +00:00
bevy_macro_utils fix deprecations from toml_edit (#12421) 2024-03-11 17:53:38 +00:00
bevy_macros_compile_fail_tests Fix Ci failing over dead code in tests (#12623) 2024-03-21 18:08:47 +00:00
bevy_math Make cardinal splines include endpoints (#12574) 2024-03-21 18:58:51 +00:00
bevy_mikktspace fix some typos (#12038) 2024-02-22 18:55:22 +00:00
bevy_panic_handler refactor: separate out PanicHandlerPlugin (#12557) 2024-03-19 00:56:49 +00:00
bevy_pbr Add setting to enable/disable shadows to MaterialPlugin (#12538) 2024-03-18 17:54:41 +00:00
bevy_ptr Add more comprehensive crate level docs for bevy_ptr (#12391) 2024-03-12 14:04:16 +00:00
bevy_reflect add reflect for BinaryHeap (#12503) 2024-03-17 22:24:04 +00:00
bevy_reflect_compile_fail_tests Fix Ci failing over dead code in tests (#12623) 2024-03-21 18:08:47 +00:00
bevy_render Reflect default in some types on bevy_render (#12580) 2024-03-19 22:50:17 +00:00
bevy_scene Use async-fn in traits rather than BoxedFuture (#12550) 2024-03-18 17:56:57 +00:00
bevy_sprite Update to fixedbitset 0.5 (#12512) 2024-03-17 18:43:05 +00:00
bevy_tasks Add "all-features = true" to docs.rs metadata for most crates (#12366) 2024-03-08 20:03:09 +00:00
bevy_text Use async-fn in traits rather than BoxedFuture (#12550) 2024-03-18 17:56:57 +00:00
bevy_time Add "all-features = true" to docs.rs metadata for most crates (#12366) 2024-03-08 20:03:09 +00:00
bevy_transform remove link to inexistent example (#12531) 2024-03-17 19:35:00 +00:00
bevy_ui rounded border: remove dead code in shader (#12602) 2024-03-21 19:17:13 +00:00
bevy_utils Use async-fn in traits rather than BoxedFuture (#12550) 2024-03-18 17:56:57 +00:00
bevy_window Expose Winit's with_skip_taskbar on window creation (#12450) 2024-03-18 17:41:42 +00:00
bevy_winit typo: 'plateform' -> 'platform' (#12626) 2024-03-21 18:37:35 +00:00