{"repo":"vleue/bevy_easings","free":true,"listed":false,"github":"https://github.com/vleue/bevy_easings","clone":"git clone https://github.com/vleue/bevy_easings.git","description":"Easing and simple animations for Bevy","language":"Rust","stars":211,"topics":["rust","bevy","bevy-plugin","easing","tweening"],"license":null,"category":"game-templates","readme_excerpt":"Bevy Easings Easings on Bevy components using interpolation. Usage System setup Add the plugin to your app: Easing a component to a new value And then just ease your components to their new state! If the component being eased is not already a component of the entity, the component should first be inserted for the target entity. Easing to a function-generated target You can also ease to a target that is generated dynamically from the previous value using a function: This is particularly useful to rescue you from repeatly writing initialize code for start status, or chaining animation without worrying about maintaining interior status. Easing using EaseMethod The EaseMethod enum can be used to provide easing methods that are not avaliable in EaseFunction. This is shown below Chaining easing You can chain easings, if they are not set to repeat they will happen in sequence. Custom component support To be able to ease a component, it needs to implement the traits Default and Lerp . This trait is re-exported by beavy easings . The basic formula for lerp (linear interpolation) is self + (other - self) scalar . Then, the system custom ease system:: needs to be added to the application. Examples See examples Choosing the ease function When easing colors, pay attention on the color space you are using Ease Functions Many ease functions are available: - QuadraticIn - QuadraticOut - QuadraticInOut - CubicIn - CubicOut - CubicInOut - QuarticIn - QuarticOut - QuarticInOut - QuinticIn - Qui","default_branch":null,"files":null,"tree":[],"storefront":"/r/vleue","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vleue/bevy_easings/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}