-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inserts some demo.
- Loading branch information
Yuichi MURATA
committed
Jun 11, 2010
1 parent
113a80e
commit ad31487
Showing
23 changed files
with
320 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/opt/local/bin/gnuplot -persist | ||
# | ||
# | ||
# G N U P L O T | ||
# Version 4.2 patchlevel 5 | ||
# last modified Mar 2009 | ||
# System: Darwin 10.3.0 | ||
# | ||
# Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009 | ||
# Thomas Williams, Colin Kelley and many others | ||
# | ||
# Type `help` to access the on-line reference manual. | ||
# The gnuplot FAQ is available from http://www.gnuplot.info/faq/ | ||
# | ||
# Send bug reports and suggestions to <http://sourceforge.net/projects/gnuplot> | ||
# | ||
set terminal png size 300,300 font 'Times' 8 | ||
set xlabel "t" 0,0 | ||
set ylabel "f (t)" 2,0 | ||
set xrange [0:1] | ||
set yrange [0:1] | ||
set nokey | ||
set size square | ||
set grid | ||
set sample 10000 | ||
|
||
set lmargin 4.5 | ||
set tmargin 1 | ||
set rmargin 0.5 | ||
set bmargin 4 | ||
|
||
set output "function_linear.png" | ||
f(x)=x | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
set output "function_easeIn.png" | ||
f(x)=x*x | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
set output "function_easeOut.png" | ||
f(x)=2*x-x*x | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
set output "function_easeInOut.png" | ||
f(x)=3*x*x-2*x*x*x | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
set output "function_easeInCubic.png" | ||
f(x)=x*x*x | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
set output "function_easeOutCubic.png" | ||
f(x)=(-x*x*x+3*x)/2 | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
set output "function_easeInOutCubic.png" | ||
f(x)=x<0.5?(2*x*2*x*2*x)/2: 0.5+(-2*(x-0.5)*2*(x-0.5)*2*(x-0.5)+3*2*(x-0.5))/4 | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
set output "function_bounce.png" | ||
f(x)=x<1.0/2.75?7.5625*x*x: x<2.0/2.75?7.5625*(x-1.5/2.75)*(x-1.5/2.75)+0.75: x<2.5/2.75?7.5625*(x-2.25/2.75)*(x-2.25/2.75)+0.9375: 7.5625*(x-2.625/2.75)*(x-2.625/2.75)+.984375 | ||
plot f(x) title "f(t)" lw 3 lc rgbcolor "#0000cd" | ||
|
||
# EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>ofxAnimationKit Documentation - Easing function</title> | ||
<link rel="stylesheet" href="style.css" type="text/css"> | ||
</head> | ||
<body> | ||
|
||
<h1>ofxAnimationKit Documentation - Easing functions</h1> | ||
<a href="index.htm">[back]</a> | ||
|
||
<h2>Easing funcitons</h2> | ||
<p>Some functions are consulted with <a href="http://www.robertpenner.com/easing/easing_demo.html">robertpenner.com</a>.</p> | ||
|
||
<table width="80%"> | ||
<tr> | ||
<td>animationFunctions::linear(t)<br /><img src="function_linear.png" alt="The graph of the funciton linear(t)" /></td> | ||
<td>animationFunctions::easeIn(t)<br /><img src="function_easeIn.png" alt="The graph of the funciton easeIn(t)" /></td> | ||
</tr> | ||
<tr> | ||
<td>animationFunctions::easeOut<br /><img src="function_easeOut.png" alt="The graph of the funciton easeOut(t)" /></td> | ||
<td>animationFunctions::easeInOut<br /><img src="function_easeInOut.png" alt="The graph of the funciton easeInOut(t)" /></td> | ||
</tr> | ||
<tr> | ||
<td>animationFunctions::easeInCubic(t)<br /><img src="function_easeInCubic.png" alt="The graph of the funciton easeInCubic(t)" /></td> | ||
<td>animationFunctions::easeOutCubic<br /><img src="function_easeOutCubic.png" alt="The graph of the funciton easeOutCubic(t)" /></td> | ||
</tr> | ||
<tr> | ||
<td>animationFunctions::easeInOutCubic(t)<br /><img src="function_easeInOutCubic.png" alt="The graph of the funciton easeInOutCubic(t)" /></td> | ||
<td>animationFunctions::bounce<br /><img src="function_bounce.png" alt="The graph of the funciton bounce(t)" /></td> | ||
</tr> | ||
</table> | ||
|
||
</body> | ||
</html> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.