From b2f052ebc4e5b2942dd2bcec14ed453e6f609994 Mon Sep 17 00:00:00 2001 From: Jerome Humbert <djeedai@gmail.com> Date: Fri, 28 Jan 2022 20:48:19 +0000 Subject: [PATCH] Fix README headings --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a0e7f3..a9acff3 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ The naming scheme for predefined lenses is `"<TargetName><FieldName>Lens"`, wher |---|---|---| | [`ColorMaterial`](https://docs.rs/bevy/0.6.0/bevy/sprite/struct.ColorMaterial.html) | [`color`](https://docs.rs/bevy/0.6.0/bevy/sprite/struct.ColorMaterial.html#structfield.color) | [`ColorMaterialColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/struct.ColorMaterialColorLens.html) | -### Custom lens +## Custom lens A custom lens allows animating any field or group of fields of a Bevy component or asset. A custom lens is a type implementing the `Lens` trait, which is generic over the type of component or asset. @@ -111,7 +111,7 @@ The basic formula for lerp (linear interpolation) is either of: The two formulations are mathematically equivalent, but one may be more suited than the other depending on the type interpolated and the operations available, and the potential floating-point precision errors. -### Custom component support +## Custom component support Custom components are animated like built-in Bevy ones, via a lens. -- GitLab