bevy/crates/bevy_math/images/easefunction/BackIn.svg
SpecificProtagonist 7c2d54c93f
EaseFunction svg graphs in doc (#17461)
# Objective

The docs of `EaseFunction` don't visualize the different functions,
requiring you to check out the Bevy repo and running the
`easing_function` example.

## Solution

- Add tool to generate suitable svg graphs. This only needs to be re-run
when adding new ease functions.
- works with all themes
- also add missing easing functions to example.

---

## Showcase

![Graphs](https://i.imgur.com/V2oTEUq.png)

---------

Co-authored-by: François Mockers <mockersf@gmail.com>
2025-02-08 09:52:39 +00:00

5 lines
2.4 KiB
XML

<svg viewBox="-0.04 -0.04 1.08 1.1799718" width="6em" xmlns="http://www.w3.org/2000/svg">
<title>BackIn</title>
<path d="M0,0 L0,1 M1,0 L1,1 M0,0 m0.1,0 l0.1,0 m0.1,0 l0.1,0 m0.1,0 l0.1,0 m0.1,0 l0.1,0 m0.1,0 l0.1,0 M0,1 m0.1,0 l0.1,0 m0.1,0 l0.1,0 m0.1,0 l0.1,0 m0.1,0 l0.1,0 m0.1,0 l0.1,0" fill="none" stroke="var(--main-color)" stroke-width="0.02"/>
<polyline fill="none" points="0 1 0.01010101 1.0001708 0.02020202 1.0006722 0.030303031 1.0014874 0.04040404 1.0025996 0.05050505 1.0039923 0.060606062 1.0056486 0.07070707 1.007552 0.08080808 1.0096856 0.09090909 1.0120329 0.1010101 1.014577 0.11111111 1.0173013 0.121212125 1.020189 0.13131313 1.0232235 0.14141414 1.026388 0.15151516 1.029666 0.16161616 1.0330405 0.17171717 1.036495 0.18181819 1.0400127 0.1919192 1.043577 0.2020202 1.047171 0.21212122 1.0507782 0.22222222 1.0543817 0.23232323 1.0579649 0.24242425 1.0615112 0.25252524 1.0650038 0.26262626 1.0684259 0.27272728 1.0717609 0.28282827 1.0749921 0.2929293 1.0781027 0.3030303 1.0810761 0.3131313 1.0838957 0.32323232 1.0865445 0.33333334 1.089006 0.34343433 1.0912633 0.35353535 1.0933 0.36363637 1.0950992 0.37373737 1.0966442 0.3838384 1.0979183 0.3939394 1.0989048 0.4040404 1.099587 0.41414142 1.0999482 0.42424244 1.0999718 0.43434343 1.0996408 0.44444445 1.0989388 0.45454547 1.097849 0.46464646 1.0963547 0.47474748 1.094439 0.4848485 1.0920855 0.4949495 1.0892773 0.5050505 1.0859978 0.5151515 1.0822302 0.5252525 1.0779579 0.53535354 1.073164 0.54545456 1.067832 0.5555556 1.0619452 0.56565654 1.0554867 0.57575756 1.04844 0.5858586 1.0407882 0.5959596 1.0325147 0.6060606 1.0236028 0.61616164 1.0140359 0.6262626 1.003797 0.6363636 0.99286985 0.64646465 0.98123723 0.65656567 0.96888274 0.6666667 0.95578957 0.67676765 0.9419412 0.68686867 0.92732066 0.6969697 0.91191137 0.7070707 0.89569664 0.7171717 0.87865967 0.72727275 0.8607839 0.7373737 0.84205264 0.74747473 0.8224489 0.75757575 0.80195624 0.7676768 0.7805579 0.7777778 0.758237 0.7878788 0.73497725 0.7979798 0.71076155 0.8080808 0.68557334 0.8181818 0.6593958 0.82828283 0.6322125 0.83838385 0.6040065 0.8484849 0.57476115 0.85858583 0.5444598 0.86868685 0.5130856 0.8787879 0.48062217 0.8888889 0.44705236 0.8989899 0.4123596 0.90909094 0.37652743 0.9191919 0.33953905 0.9292929 0.30137765 0.93939394 0.2620262 0.94949496 0.22146857 0.959596 0.17968786 0.969697 0.13666725 0.97979796 0.09239054 0.989899 0.04684031 1 0" stroke="red" stroke-width="0.04"/>
</svg>