Skip to content

Commit

Permalink
remove gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jun 8, 2024
1 parent 08a8bbd commit e0b0392
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 174 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "bevy_easings"
version = "0.14.0"
authors = ["François Mockers <mockersf@gmail.com>"]
authors = ["François Mockers <francois.mockers@vleue.com>"]
edition = "2021"
description = "Easing plugin for Bevy"
repository = "https://github.com/vleue/bevy_easings"
Expand All @@ -10,7 +10,7 @@ documentation = "https://docs.rs/bevy_easings"
keywords = ["bevy", "animation", "easing"]
license = "MIT OR Apache-2.0"
readme = "README.md"
exclude = ["examples/*.gif"]
exclude = ["examples/*.webp"]
categories = ["game-development"]

[dependencies]
Expand Down
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,7 @@ fn my_system(mut commands: Commands){
}
```

## Bundle Supported

- [`Sprite`](https://docs.rs/bevy/latest/bevy/prelude/struct.Sprite.html)
- [`Transform`](https://docs.rs/bevy/latest/bevy/prelude/struct.Transform.html)
- [`Style`](https://docs.rs/bevy/latest/bevy/prelude/struct.Style.html)

### Custom component support
## Custom component support

To be able to ease a component, it needs to implement the traits `Default` and [`Lerp`](https://docs.rs/interpolation/0.2.0/interpolation/trait.Lerp.html). This trait is re-exported by `beavy_easings`.

Expand All @@ -185,13 +179,15 @@ Then, the system `custom_ease_system::<CustomComponent>` needs to be added to th

See [examples](https://github.com/vleue/bevy_easings/tree/main/examples)

![sprite_color](./examples/sprite_color.gif)
### Choosing the ease function

![sprite_size](./examples/sprite_size.gif)
![easing on size](https://raw.githubusercontent.com/vleue/bevy_easings/main/examples/lerping-sizes.webp)

![transform_rotation](./examples/transform_rotation.gif)
![easing on color](https://raw.githubusercontent.com/vleue/bevy_easings/main/examples/lerping-color.webp)

![transform_translation](./examples/transform_translation.gif)
When easing colors, pay attention on the color space you are using

![color spaces](https://raw.githubusercontent.com/vleue/bevy_easings/main/examples/lerping-color-spaces.webp)

## Ease Functions

Expand Down Expand Up @@ -228,6 +224,8 @@ Many [ease functions](https://docs.rs/interpolation/0.2.0/interpolation/enum.Eas
- BounceOut
- BounceInOut

## Bevy supported version

|Bevy|bevy_easings|
|---|---|
|main|main|
Expand Down
161 changes: 0 additions & 161 deletions examples/README.md

This file was deleted.

Binary file removed examples/chain.gif
Binary file not shown.
Binary file removed examples/pause.gif
Binary file not shown.
Binary file removed examples/react_on_end.gif
Binary file not shown.
Binary file removed examples/sprite_color.gif
Binary file not shown.
Binary file removed examples/sprite_size.gif
Binary file not shown.
Binary file removed examples/transform_rotation.gif
Binary file not shown.
Binary file removed examples/transform_translation.gif
Binary file not shown.

0 comments on commit e0b0392

Please sign in to comment.