4 Commits

Author SHA1 Message Date
t 85c788ba57 docs: add missing changelog entry 2023-01-12 20:58:21 +01:00
t b4c1325547 build: bump version (v1.0.1) 2023-01-12 20:49:19 +01:00
t bdc159681f build: use edition "2021" 2023-01-12 20:48:59 +01:00
t bf722d7179 fix: repair broken elastic_out
fixes #1
2023-01-12 20:47:03 +01:00
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## 1.0.1
* repair `elastic_out` function
## 1.0.0
* First release
+2 -2
View File
@@ -1,8 +1,8 @@
[package]
name = "simple-easing"
version = "1.0.0"
version = "1.0.1"
description = "Set of simple easing functions"
edition = "2018"
edition = "2021"
repository = "https://gitlab.com/chpio/simple-easing"
license = "MIT OR Apache-2.0"
include = [
+1 -1
View File
@@ -21,7 +21,7 @@ pub fn elastic_out(t: f32) -> f32 {
} else if 1.0 <= t {
1.0
} else {
2f32.powf(-100.0 * t) * ((t * 10.0 - 0.75) * C4).sin() + 1.0
2f32.powf(-10.0 * t) * ((t * 10.0 - 0.75) * C4).sin() + 1.0
}
}