ease

package
v1.3.390 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package ease 缓动.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Back

func Back(p float32, flag xcc.Ease_Type_) float32

缓动_Back, 回弹, 比较缓慢.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Bounce

func Bounce(p float32, flag xcc.Ease_Type_) float32

缓动_Bounce.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Circ

func Circ(p float32, flag xcc.Ease_Type_) float32

缓动_Circ, 圆环, 好比绕过一个圆环.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Cubic

func Cubic(p float32, flag xcc.Ease_Type_) float32

缓动_Cubic, 三次方曲线, 圆弧.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Elastic

func Elastic(p float32, flag xcc.Ease_Type_) float32

缓动_Elastic, 强力回弹.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Ex added in v1.3.310

func Ex(pos float32, flag xcc.Ease_Flag_) float32

缓动_扩展, 全部缓动类型.

pos: 位置, 0.0f - 1.0f.

flag: 缓动标识, Ease_Flag_.

func Expo

func Expo(p float32, flag xcc.Ease_Type_) float32

缓动_Expo, 突击曲线, 突然一下.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Linear

func Linear(p float32) float32

缓动_Linear, 线性.

p: 位置, 0.0f - 1.0f.

func Quad

func Quad(p float32, flag xcc.Ease_Type_) float32

缓动_Quad, 二次方曲线.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Quart

func Quart(p float32, flag xcc.Ease_Type_) float32

缓动_Quart, 四次方曲线.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Quint

func Quint(p float32, flag xcc.Ease_Type_) float32

缓动_Quint, 五次方曲线.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

func Sine

func Sine(p float32, flag xcc.Ease_Type_) float32

缓动_Sine, 正弦曲线, 在末端变化.

p: 位置, 0.0f - 1.0f.

flag: 缓动类型, Ease_Type_.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL