Skip to content
/ sh.ease Public

Robert Penner's handy easing equations for bash

Notifications You must be signed in to change notification settings

b3nson/sh.ease

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sh.ease

Robert Penner's handy easing equations for bash

Examples

Check the examples directory in this repository.

  • svgCheatSheet.sh - script to generate a cheatsheet as svg (the one you see below)
  • ascii-graphs.sh - script to plot character-based easing-graphs to terminal

Usage

#!/bin/bash

#include easing-functions
source easing.sh

quad_easeIn $time $begin $change $duration
quad_easeOut $time $begin $change $duration
quad_easeInOut $time $begin $change $duration
...

#to ease the x-value of something,    
#to make it move from x=50 to x= 250 in 100 steps    
#you would write something like:    

for i in {0..100}
do
  x=`circ_easeOut $i 50 200 100`
  #draw
done
...

Prerequisites

Nothing any unix-like system (UNIX / GNU/Linux / OS X) shouldn't come with

Explicitly tested on GNU/Linux (Ubuntu 14.04 LTS/Debian 7.4) and OS X (10.6.2/10.8.5)

License

GNU General Public License v3

Reference

This SVG-Cheatsheet was generated with svgCheatSheet.sh in the examples directory CheatSheet

About

Robert Penner's handy easing equations for bash

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages