Returns an "eased" value of [code]x[/code] based on an easing function defined with [code]curve[/code]. This easing function is based on an exponent. The [code]curve[/code] can be any floating-point number, with specific values leading to the following behaviors: [codeblock] - Lower than -1.0 (exclusive): Ease in-out - 1.0: Linear - Between -1.0 and 0.0 (exclusive): Ease out-in - 0.0: Constant - Between 0.0 to 1.0 (exclusive): Ease out - 1.0: Linear - Greater than 1.0 (exclusive): Ease in [/codeblock] [img caption="ease() curve values cheatsheet"]/img/ease_cheatsheet.png[/img] See also [method smoothstep]. If you need to perform more advanced transitions, use [Tween] or [AnimationPlayer].
Retourne une valeur "assouplie" de [code]x[/code] sur la base d'une fonction d'assouplissement définie avec [code]curve[/code]. Cette fonction d'assouplissement est basée sur un exposant. [code]curve[/code] peut être un nombre à virgule flottante, avec des valeurs spécifiques conduisant aux comportements suivants: [codeblock] - Inférieur à -1.0 (exclusif): Ease in-out - 1.0: Linéaire - Entre -1.0 et 0.0 (exclusif): Ease out-in - 0.0: Constante - Entre 0.0 et 1.0 (exclusif): Ease in - 1.0: Linéaire - Supérieur à 1.0 (exclusif): Ease out [/codeblock] [url=https://raw.githubusercontent.com/godotengine/godot-docs/3.4/img/ease_cheatsheet.png]ease() curve values cheatsheet[/url] Voir également [method smoothstep]. Si vous avez besoin de réaliser des transitions plus avancées, utilisez [Tween] ou [AnimationPlayer].
[codeblock]
- Lower than -1.0 (exclusive): Ease in-out
- 1.0: Linear
- Between -1.0 and 0.0 (exclusive): Ease out-in
- 0.0: Constant
- Between 0.0 to 1.0 (exclusive): Ease out
- 1.0: Linear
- Greater than 1.0 (exclusive): Ease in
[/codeblock]
[img caption="ease() curve values cheatsheet"]/img/ease_cheatsheet.png[/img]
See also [method smoothstep]. If you need to perform more advanced transitions, use [Tween] or [AnimationPlayer].
[codeblock]
- Inférieur à -1.0 (exclusif): Ease in-out
- 1.0: Linéaire
- Entre -1.0 et 0.0 (exclusif): Ease out-in
- 0.0: Constante
- Entre 0.0 et 1.0 (exclusif): Ease in
- 1.0: Linéaire
- Supérieur à 1.0 (exclusif): Ease out
[/codeblock]
[url=https://raw.githubusercontent.com/godotengine/godot-docs/3.4/img/ease_cheatsheet.png]ease() curve values cheatsheet[/url]
Voir également [method smoothstep]. Si vous avez besoin de réaliser des transitions plus avancées, utilisez [Tween] ou [AnimationPlayer].