8000 GitHub - Oldes/Rebol-Easing: Rebol extension with easing functions
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Oldes/Rebol-Easing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rebol-easing

Rebol-Easing CI Gitter Zulip

Rebol/Easing

Collection of easing functions for Rebol3. Based on Warren Moore's code: https://github.com/warrenm/AHEasing

Usage

ease: import 'easing

;; Using helper `tween` function
;; getting values between 100 and 200 with an in-elastic easing
t: 0.0 loop 21 [
    print [t tab tween 100 200 t 'in-cubic]
    t: t + 0.05
]
;; getting values between black and red colors with an out-elastic easing
t: 0.0 loop 21 [
    print [t tab tween 0.0.0 255.0.0 t 'out-elastic]
    t: t + 0.05
]

;; Using easing natives directly:
probe ease/in-out-quad 0.4

Graph example results

Images generated using gen-graphs.r3 script.

Easing quadratic

quadratic

Easing cubic

cubic

Easing quartic

quartic

Easing sine

sine

Easing circular

circular

Easing exponential

exponential

Easing elastic

elastic

Easing back

back

Easing bounce

bounce

About

Rebol extension with easing functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0