# core/tween/easing_function/quartic (vanilla-engine 0.4.0)

> https://vanillapunch.com/docs/vanilla-engine/0.4.0/api/core/tween/easing_function/quartic/

Quartic curve.

Example: Values at the middle and the quarter points

```rust
use vanilla::easing_function::quartic;

assert_eq!(quartic::ease_in(0.5), 0.0625);
assert_eq!(quartic::ease_out(0.5), 0.9375);
assert_eq!(quartic::ease_in_out(0.25), 0.03125);
```

## Functions and constants

- `pub fn ease_in(progress: f64) -> f64` (method, since 0.4.0): Starts slowly.
  - `progress` f64: Progress. (0 ~ 1)
  - returns f64: Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
- `pub fn ease_out(progress: f64) -> f64` (method, since 0.4.0): Ends slowly.
  - `progress` f64: Progress. (0 ~ 1)
  - returns f64: Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
- `pub fn ease_in_out(progress: f64) -> f64` (method, since 0.4.0): Starts slowly and ends slowly.
  - `progress` f64: Progress. (0 ~ 1)
  - returns f64: Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
