85 | This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
86 | Overview
87 |
88 |
89 |
90 | The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
91 |
92 | Package
93 |
94 |
95 |
96 | Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
97 |
Interfaces (italic)
Classes
Enums
Exceptions
Errors
Annotation Types
98 |
99 |
100 | Class/Interface
101 |
102 |
103 |
104 | Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
105 |
Class inheritance diagram
Direct Subclasses
All Known Subinterfaces
All Known Implementing Classes
Class/interface declaration
Class/interface description
106 |
107 |
Nested Class Summary
Field Summary
Constructor Summary
Method Summary
108 |
109 |
Field Detail
Constructor Detail
Method Detail
110 | Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
111 |
112 |
113 | Annotation Type
114 |
115 |
116 |
117 | Each annotation type has its own separate page with the following sections:
118 |
Annotation Type declaration
Annotation Type description
Required Element Summary
Optional Element Summary
Element Detail
119 |
120 |
121 |
122 | Enum
123 |
124 |
125 |
126 | Each enum has its own separate page with the following sections:
127 |
Enum declaration
Enum description
Enum Constant Summary
Enum Constant Detail
128 |
129 |
130 | Tree (Class Hierarchy)
131 |
132 | There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
133 |
When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
134 |
135 |
136 | Deprecated API
137 |
138 | The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
139 |
140 | Index
141 |
142 | The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
143 |
144 | Prev/Next
145 | These links take you to the next or previous class, interface, package, or related page.
146 | Frames/No Frames
147 | These links show and hide the HTML frames. All pages are available with or without frames.
148 |
149 |
150 | Serialized Form
151 | Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
152 |
153 |
154 | Constant Field Values
155 | The Constant Field Values page lists the static final fields and their values.
156 |
157 |
158 |
159 | This help file applies to API documentation generated using the standard doclet.
160 |
161 |
162 |
155 |
156 |
157 |
158 |
159 | processing library Ani by Benedikt Gross. (c) 2015
160 |
161 |
162 |
--------------------------------------------------------------------------------
/reference/package-list:
--------------------------------------------------------------------------------
1 | de.looksgood.ani
2 | de.looksgood.ani.easing
3 |
--------------------------------------------------------------------------------
/reference/resources/inherit.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/reference/resources/inherit.gif
--------------------------------------------------------------------------------
/reference/serialized-form.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/reference/serialized-form.html
--------------------------------------------------------------------------------
/reference/stylesheet.css:
--------------------------------------------------------------------------------
1 | /* Javadoc style sheet */
2 | /* Define colors, fonts and other style attributes here to override the defaults */
3 | /* processingLibs style by andreas schlegel, sojamo */
4 |
5 |
6 | body {
7 | margin : 0;
8 | padding : 0;
9 | padding-left : 10px;
10 | padding-right : 8px;
11 | background-color : #FFFFFF;
12 | font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
13 | font-size : 100%;
14 | font-size : 0.7em;
15 | font-weight : normal;
16 | line-height : normal;
17 | margin-bottom:30px;
18 | }
19 |
20 |
21 |
22 |
23 | /* Headings */
24 | h1, h2, h3, h4, h5, th {
25 | font-family :Arial, Helvetica, sans-serif;
26 | font-size:1.2em;
27 | }
28 |
29 |
30 | p {
31 | font-size : 1em;
32 | width:80%;
33 | }
34 |
35 | pre, code {
36 | font-family : "Courier New", Courier, monospace;
37 | font-size : 12px;
38 | line-height : normal;
39 | }
40 |
41 |
42 |
43 | table {
44 | border:0;
45 | margin-bottom:10px;
46 | margin-top:10px;
47 | }
48 |
49 |
50 | tr, td {
51 | border-top: 0px solid;
52 | border-left: 0px solid;
53 | padding-top:8px;
54 | padding-bottom:8px;
55 | }
56 |
57 |
58 |
59 | hr {
60 | border:0;
61 | height:1px;
62 | padding:0;
63 | margin:0;
64 | margin-bottom:4px;
65 |
66 | }
67 |
68 |
69 |
70 | dd, th, td, font {
71 | font-size:1.0em;
72 | line-height:1.0em;
73 | }
74 |
75 |
76 |
77 | dt {
78 | margin-bottom:0px;
79 | }
80 |
81 |
82 |
83 | dd {
84 | margin-top:2px;
85 | margin-bottom:4px;
86 | }
87 |
88 |
89 |
90 | a {
91 | text-decoration: underline;
92 | font-weight: normal;
93 | }
94 |
95 | a:hover,
96 | a:active {
97 | text-decoration: underline;
98 | font-weight: normal;
99 | }
100 |
101 | a:visited,
102 | a:link:visited {
103 | text-decoration: underline;
104 | font-weight: normal;
105 | }
106 |
107 |
108 | img {
109 | border: 0px solid #000000;
110 | }
111 |
112 |
113 |
114 | /* Navigation bar fonts */
115 | .NavBarCell1 {
116 | border:0;
117 | }
118 |
119 | .NavBarCell1Rev {
120 | border:0;
121 | }
122 |
123 | .NavBarFont1 {
124 | font-family: Arial, Helvetica, sans-serif;
125 | font-size:1.1em;
126 | }
127 |
128 |
129 | .NavBarFont1 b {
130 | font-weight:normal;
131 | }
132 |
133 |
134 |
135 | .NavBarFont1:after, .NavBarFont1Rev:after {
136 | font-weight:normal;
137 | content: " \\";
138 | }
139 |
140 |
141 | .NavBarFont1Rev {
142 | font-family: Arial, Helvetica, sans-serif;
143 | font-size:1.1em;
144 | }
145 |
146 | .NavBarFont1Rev b {
147 | font-family: Arial, Helvetica, sans-serif;
148 | font-size:1.1em;
149 | font-weight:normal;
150 | }
151 |
152 | .NavBarCell2 {
153 | font-family: Arial, Helvetica, sans-serif;
154 | }
155 |
156 | .NavBarCell3 {
157 | font-family: Arial, Helvetica, sans-serif;
158 | }
159 |
160 |
161 |
162 | font.FrameItemFont {
163 | font-family: Helvetica, Arial, sans-serif;
164 | font-size:1.1em;
165 | line-height:1.1em;
166 | }
167 |
168 | font.FrameHeadingFont {
169 | font-family: Helvetica, Arial, sans-serif;
170 | line-height:32px;
171 | }
172 |
173 | /* Font used in left-hand frame lists */
174 | .FrameTitleFont {
175 | font-family: Helvetica, Arial, sans-serif
176 | }
177 |
178 |
179 | .toggleList {
180 | padding:0;
181 | margin:0;
182 | margin-top:12px;
183 | }
184 |
185 | .toggleList dt {
186 | font-weight:bold;
187 | font-size:12px;
188 | font-family:arial,sans-serif;
189 | padding:0px;
190 | margin:10px 0px 10px 0px;
191 | }
192 |
193 | .toggleList dt span {
194 | font-family: monospace;
195 | padding:0;
196 | margin:0;
197 | }
198 |
199 |
200 | .toggleList dd {
201 | margin:0;
202 | padding:0;
203 | }
204 |
205 | html.isjs .toggleList dd {
206 | display: none;
207 | }
208 |
209 | .toggleList pre {
210 | padding: 4px 4px 4px 4px;
211 | }
212 |
213 |
214 |
215 |
216 |
217 | /* COLORS */
218 |
219 | pre, code {
220 | color: #000000;
221 | }
222 |
223 |
224 | body {
225 | color : #333333;
226 | background-color :#FFFFFF;
227 | }
228 |
229 |
230 | h1, h2, h3, h4, h5, h6 {
231 | color:#555;
232 | }
233 |
234 | a,
235 | .toggleList dt {
236 | color: #1a7eb0;
237 | }
238 |
239 | a:hover,
240 | a:active {
241 | color: #1a7eb0;
242 | }
243 |
244 | a:visited,
245 | a:link:visited {
246 | color: #1a7eb0;
247 | }
248 |
249 | td,tr {
250 | border-color: #999999;
251 | }
252 |
253 | hr {
254 | color:#999999;
255 | background:#999999;
256 | }
257 |
258 |
259 | .TableHeadingColor {
260 | background: #dcdcdc;
261 | color: #555;
262 | }
263 |
264 |
265 | .TableSubHeadingColor {
266 | background: #EEEEFF
267 | }
268 |
269 | .TableRowColor {
270 | background: #FFFFFF
271 | }
272 |
273 |
274 | .NavBarCell1 {
275 | background-color:#dcdcdc;
276 | color:#000;
277 | }
278 |
279 | .NavBarCell1 a {
280 | color:#333;
281 | }
282 |
283 |
284 | .NavBarCell1Rev {
285 | background-color:transparent;
286 | }
287 |
288 | .NavBarFont1 {
289 | color:#333;
290 | }
291 |
292 |
293 | .NavBarFont1Rev {
294 | color:#fff;
295 | }
296 |
297 | .NavBarCell2 {
298 | background-color:#999;
299 | }
300 |
301 | .NavBarCell2 a {
302 | color:#fff;
303 | }
304 |
305 |
306 |
307 | .NavBarCell3 {
308 | background-color:#dcdcdc;
309 | }
310 |
311 |
--------------------------------------------------------------------------------
/resources/code/ExampleTaglet.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/resources/code/ExampleTaglet.class
--------------------------------------------------------------------------------
/resources/code/ExampleTaglet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or
5 | * without modification, are permitted provided that the following
6 | * conditions are met:
7 | *
8 | * -Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | *
11 | * -Redistribution in binary form must reproduce the above copyright
12 | * notice, this list of conditions and the following disclaimer in
13 | * the documentation and/or other materials provided with the
14 | * distribution.
15 | *
16 | * Neither the name of Sun Microsystems, Inc. or the names of
17 | * contributors may be used to endorse or promote products derived
18 | * from this software without specific prior written permission.
19 | *
20 | * This software is provided "AS IS," without a warranty of any
21 | * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
22 | * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
23 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
24 | * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
25 | * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
26 | * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR
27 | * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
28 | * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
29 | * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
30 | * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
31 | * THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN
32 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
33 | *
34 | * You acknowledge that Software is not designed, licensed or
35 | * intended for use in the design, construction, operation or
36 | * maintenance of any nuclear facility.
37 | */
38 |
39 | import com.sun.tools.doclets.Taglet;
40 | import com.sun.javadoc.*;
41 | import java.util.Map;
42 | import java.io.*;
43 | /**
44 | * A sample Taglet representing @example. This tag can be used in any kind of
45 | * {@link com.sun.javadoc.Doc}. It is not an inline tag. The text is displayed
46 | * in yellow to remind the developer to perform a task. For
47 | * example, "@example Hello" would be shown as:
48 | *
49 | *
50 | * To Do:
51 | *
Fix this!
52 | *
53 | *
54 | *
55 | * @author Jamie Ho
56 | * @since 1.4
57 | */
58 |
59 | public class ExampleTaglet implements Taglet {
60 |
61 | private static final String NAME = "example";
62 | private static final String HEADER = "example To Do:";
63 |
64 | /**
65 | * Return the name of this custom tag.
66 | */
67 | public String getName() {
68 | return NAME;
69 | }
70 |
71 | /**
72 | * Will return true since @example
73 | * can be used in field documentation.
74 | * @return true since @example
75 | * can be used in field documentation and false
76 | * otherwise.
77 | */
78 | public boolean inField() {
79 | return true;
80 | }
81 |
82 | /**
83 | * Will return true since @example
84 | * can be used in constructor documentation.
85 | * @return true since @example
86 | * can be used in constructor documentation and false
87 | * otherwise.
88 | */
89 | public boolean inConstructor() {
90 | return true;
91 | }
92 |
93 | /**
94 | * Will return true since @example
95 | * can be used in method documentation.
96 | * @return true since @example
97 | * can be used in method documentation and false
98 | * otherwise.
99 | */
100 | public boolean inMethod() {
101 | return true;
102 | }
103 |
104 | /**
105 | * Will return true since @example
106 | * can be used in method documentation.
107 | * @return true since @example
108 | * can be used in overview documentation and false
109 | * otherwise.
110 | */
111 | public boolean inOverview() {
112 | return true;
113 | }
114 |
115 | /**
116 | * Will return true since @example
117 | * can be used in package documentation.
118 | * @return true since @example
119 | * can be used in package documentation and false
120 | * otherwise.
121 | */
122 | public boolean inPackage() {
123 | return true;
124 | }
125 |
126 | /**
127 | * Will return true since @example
128 | * can be used in type documentation (classes or interfaces).
129 | * @return true since @example
130 | * can be used in type documentation and false
131 | * otherwise.
132 | */
133 | public boolean inType() {
134 | return true;
135 | }
136 |
137 | /**
138 | * Will return false since @example
139 | * is not an inline tag.
140 | * @return false since @example
141 | * is not an inline tag.
142 | */
143 |
144 | public boolean isInlineTag() {
145 | return false;
146 | }
147 |
148 | /**
149 | * Register this Taglet.
150 | * @param tagletMap the map to register this tag to.
151 | */
152 | public static void register(Map tagletMap) {
153 | ExampleTaglet tag = new ExampleTaglet();
154 | Taglet t = (Taglet) tagletMap.get(tag.getName());
155 | if (t != null) {
156 | tagletMap.remove(tag.getName());
157 | }
158 | tagletMap.put(tag.getName(), tag);
159 | }
160 |
161 | /**
162 | * Given the Tag representation of this custom
163 | * tag, return its string representation.
164 | * @param tag the Tag representation of this custom tag.
165 | */
166 | public String toString(Tag tag) {
167 | return createHTML(readFile(tag.text()));
168 | }
169 |
170 |
171 | /**
172 | * Given an array of Tags representing this custom
173 | * tag, return its string representation.
174 | * @param tags the array of Tags representing of this custom tag.
175 | */
176 | public String toString(Tag[] tags) {
177 | if (tags.length == 0) {
178 | return null;
179 | }
180 | return createHTML(readFile(tags[0].text()));
181 | }
182 |
183 |
184 |
185 | String createHTML(String theString) {
186 | if(theString!=null) {
187 | String dd = "";
193 |
194 | return dd+"\n
" +
195 | "
+Example
" +
196 | "
"+theString+"
" +
197 | "
";
198 | }
199 | return "";
200 | }
201 |
202 |
203 | /**
204 | * check if the examples directory exists and return the example as given in the tag.
205 | * @param theExample the name of the example
206 | */
207 | String readFile(String theExample) {
208 | String record = "";
209 | String myResult = "";
210 | int recCount = 0;
211 | String myDir = "../examples";
212 | File file=new File(myDir);
213 | if(file.exists()==false) {
214 | myDir = "./examples";
215 | }
216 | try {
217 | FileReader fr = new FileReader(myDir+"/"+theExample+"/"+theExample+".pde");
218 | BufferedReader br = new BufferedReader(fr);
219 | record = new String();
220 | while ((record = br.readLine()) != null) {
221 | myResult += record+"\n";
222 | }
223 | } catch (IOException e) {
224 | System.out.println(e);
225 | return null;
226 | }
227 | return myResult;
228 | }
229 | }
230 |
231 |
232 |
--------------------------------------------------------------------------------
/resources/code/ant-contrib-1.0b3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/resources/code/ant-contrib-1.0b3.jar
--------------------------------------------------------------------------------
/resources/code/doc.sh:
--------------------------------------------------------------------------------
1 | # a shell script to create a java documentation
2 | # for a processing library.
3 | #
4 | # make changes to the variables below so they
5 | # fit the structure of your library
6 |
7 | # the package name of your library
8 | package=template;
9 |
10 | # source folder location
11 | src=../src;
12 |
13 | # the destination folder of your documentation
14 | dest=../documentation;
15 |
16 |
17 | # compile the java documentation
18 | javadoc -d $dest -stylesheetfile ./stylesheet.css -sourcepath ${src} ${package}
19 |
--------------------------------------------------------------------------------
/resources/stylesheet.css:
--------------------------------------------------------------------------------
1 | /* Javadoc style sheet */
2 | /* Define colors, fonts and other style attributes here to override the defaults */
3 | /* processingLibs style by andreas schlegel, sojamo */
4 |
5 |
6 | body {
7 | margin : 0;
8 | padding : 0;
9 | padding-left : 10px;
10 | padding-right : 8px;
11 | background-color : #FFFFFF;
12 | font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
13 | font-size : 100%;
14 | font-size : 0.7em;
15 | font-weight : normal;
16 | line-height : normal;
17 | margin-bottom:30px;
18 | }
19 |
20 |
21 |
22 |
23 | /* Headings */
24 | h1, h2, h3, h4, h5, th {
25 | font-family :Arial, Helvetica, sans-serif;
26 | font-size:1.2em;
27 | }
28 |
29 |
30 | p {
31 | font-size : 1em;
32 | width:80%;
33 | }
34 |
35 | pre, code {
36 | font-family : "Courier New", Courier, monospace;
37 | font-size : 12px;
38 | line-height : normal;
39 | }
40 |
41 |
42 |
43 | table {
44 | border:0;
45 | margin-bottom:10px;
46 | margin-top:10px;
47 | }
48 |
49 |
50 | tr, td {
51 | border-top: 0px solid;
52 | border-left: 0px solid;
53 | padding-top:8px;
54 | padding-bottom:8px;
55 | }
56 |
57 |
58 |
59 | hr {
60 | border:0;
61 | height:1px;
62 | padding:0;
63 | margin:0;
64 | margin-bottom:4px;
65 |
66 | }
67 |
68 |
69 |
70 | dd, th, td, font {
71 | font-size:1.0em;
72 | line-height:1.0em;
73 | }
74 |
75 |
76 |
77 | dt {
78 | margin-bottom:0px;
79 | }
80 |
81 |
82 |
83 | dd {
84 | margin-top:2px;
85 | margin-bottom:4px;
86 | }
87 |
88 |
89 |
90 | a {
91 | text-decoration: underline;
92 | font-weight: normal;
93 | }
94 |
95 | a:hover,
96 | a:active {
97 | text-decoration: underline;
98 | font-weight: normal;
99 | }
100 |
101 | a:visited,
102 | a:link:visited {
103 | text-decoration: underline;
104 | font-weight: normal;
105 | }
106 |
107 |
108 | img {
109 | border: 0px solid #000000;
110 | }
111 |
112 |
113 |
114 | /* Navigation bar fonts */
115 | .NavBarCell1 {
116 | border:0;
117 | }
118 |
119 | .NavBarCell1Rev {
120 | border:0;
121 | }
122 |
123 | .NavBarFont1 {
124 | font-family: Arial, Helvetica, sans-serif;
125 | font-size:1.1em;
126 | }
127 |
128 |
129 | .NavBarFont1 b {
130 | font-weight:normal;
131 | }
132 |
133 |
134 |
135 | .NavBarFont1:after, .NavBarFont1Rev:after {
136 | font-weight:normal;
137 | content: " \\";
138 | }
139 |
140 |
141 | .NavBarFont1Rev {
142 | font-family: Arial, Helvetica, sans-serif;
143 | font-size:1.1em;
144 | }
145 |
146 | .NavBarFont1Rev b {
147 | font-family: Arial, Helvetica, sans-serif;
148 | font-size:1.1em;
149 | font-weight:normal;
150 | }
151 |
152 | .NavBarCell2 {
153 | font-family: Arial, Helvetica, sans-serif;
154 | }
155 |
156 | .NavBarCell3 {
157 | font-family: Arial, Helvetica, sans-serif;
158 | }
159 |
160 |
161 |
162 | font.FrameItemFont {
163 | font-family: Helvetica, Arial, sans-serif;
164 | font-size:1.1em;
165 | line-height:1.1em;
166 | }
167 |
168 | font.FrameHeadingFont {
169 | font-family: Helvetica, Arial, sans-serif;
170 | line-height:32px;
171 | }
172 |
173 | /* Font used in left-hand frame lists */
174 | .FrameTitleFont {
175 | font-family: Helvetica, Arial, sans-serif
176 | }
177 |
178 |
179 | .toggleList {
180 | padding:0;
181 | margin:0;
182 | margin-top:12px;
183 | }
184 |
185 | .toggleList dt {
186 | font-weight:bold;
187 | font-size:12px;
188 | font-family:arial,sans-serif;
189 | padding:0px;
190 | margin:10px 0px 10px 0px;
191 | }
192 |
193 | .toggleList dt span {
194 | font-family: monospace;
195 | padding:0;
196 | margin:0;
197 | }
198 |
199 |
200 | .toggleList dd {
201 | margin:0;
202 | padding:0;
203 | }
204 |
205 | html.isjs .toggleList dd {
206 | display: none;
207 | }
208 |
209 | .toggleList pre {
210 | padding: 4px 4px 4px 4px;
211 | }
212 |
213 |
214 |
215 |
216 |
217 | /* COLORS */
218 |
219 | pre, code {
220 | color: #000000;
221 | }
222 |
223 |
224 | body {
225 | color : #333333;
226 | background-color :#FFFFFF;
227 | }
228 |
229 |
230 | h1, h2, h3, h4, h5, h6 {
231 | color:#555;
232 | }
233 |
234 | a,
235 | .toggleList dt {
236 | color: #1a7eb0;
237 | }
238 |
239 | a:hover,
240 | a:active {
241 | color: #1a7eb0;
242 | }
243 |
244 | a:visited,
245 | a:link:visited {
246 | color: #1a7eb0;
247 | }
248 |
249 | td,tr {
250 | border-color: #999999;
251 | }
252 |
253 | hr {
254 | color:#999999;
255 | background:#999999;
256 | }
257 |
258 |
259 | .TableHeadingColor {
260 | background: #dcdcdc;
261 | color: #555;
262 | }
263 |
264 |
265 | .TableSubHeadingColor {
266 | background: #EEEEFF
267 | }
268 |
269 | .TableRowColor {
270 | background: #FFFFFF
271 | }
272 |
273 |
274 | .NavBarCell1 {
275 | background-color:#dcdcdc;
276 | color:#000;
277 | }
278 |
279 | .NavBarCell1 a {
280 | color:#333;
281 | }
282 |
283 |
284 | .NavBarCell1Rev {
285 | background-color:transparent;
286 | }
287 |
288 | .NavBarFont1 {
289 | color:#333;
290 | }
291 |
292 |
293 | .NavBarFont1Rev {
294 | color:#fff;
295 | }
296 |
297 | .NavBarCell2 {
298 | background-color:#999;
299 | }
300 |
301 | .NavBarCell2 a {
302 | color:#fff;
303 | }
304 |
305 |
306 |
307 | .NavBarCell3 {
308 | background-color:#dcdcdc;
309 | }
310 |
311 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/AniConstants.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/src/de/looksgood/ani/AniConstants.java
--------------------------------------------------------------------------------
/src/de/looksgood/ani/AniUtil.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/src/de/looksgood/ani/AniUtil.java
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Back.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Back extends Easing {
39 | public Back(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Back(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | float s = 1.70158f;
49 | return c * (t /= d) * t * ((s + 1) * t - s) + b;
50 | }
51 |
52 | public float easeOut(float t, float b, float c, float d) {
53 | float s = 1.70158f;
54 | return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
55 | }
56 |
57 | public float easeInOut(float t, float b, float c, float d) {
58 | float s = 1.70158f;
59 | if ((t /= d / 2) < 1)
60 | return c / 2 * (t * t * (((s *= (1.525f)) + 1) * t - s)) + b;
61 | return c / 2 * ((t -= 2) * t * (((s *= (1.525f)) + 1) * t + s) + 2) + b;
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Bounce.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Bounce extends Easing {
39 | public Bounce(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Bounce(){
44 | setMode(easingMode);
45 | }
46 | public float easeIn(float t, float b, float c, float d) {
47 | return c - easeOut(d - t, 0, c, d) + b;
48 | }
49 |
50 | public float easeOut(float t, float b, float c, float d) {
51 | if ((t /= d) < (1 / 2.75f)) {
52 | return c * (7.5625f * t * t) + b;
53 | } else if (t < (2 / 2.75f)) {
54 | return c * (7.5625f * (t -= (1.5f / 2.75f)) * t + .75f) + b;
55 | } else if (t < (2.5 / 2.75)) {
56 | return c * (7.5625f * (t -= (2.25f / 2.75f)) * t + .9375f) + b;
57 | } else {
58 | return c * (7.5625f * (t -= (2.625f / 2.75f)) * t + .984375f) + b;
59 | }
60 | }
61 |
62 | public float easeInOut(float t, float b, float c, float d) {
63 | if (t < d / 2)
64 | return easeIn(t * 2, 0, c, d) * .5f + b;
65 | else
66 | return easeOut(t * 2 - d, 0, c, d) * .5f + c * .5f + b;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Circ.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Circ extends Easing {
39 | public Circ(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Circ(){
44 | setMode(easingMode);
45 | }
46 | public float easeIn(float t, float b, float c, float d) {
47 | return -c * ((float) Math.sqrt(1 - (t /= d) * t) - 1) + b;
48 | }
49 |
50 | public float easeOut(float t, float b, float c, float d) {
51 | return c * (float) Math.sqrt(1 - (t = t / d - 1) * t) + b;
52 | }
53 |
54 | public float easeInOut(float t, float b, float c, float d) {
55 | if ((t /= d / 2) < 1)
56 | return -c / 2 * ((float) Math.sqrt(1 - t * t) - 1) + b;
57 | return c / 2 * ((float) Math.sqrt(1 - (t -= 2) * t) + 1) + b;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Cubic.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Cubic extends Easing {
39 | public Cubic(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Cubic(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | return c * (t /= d) * t * t + b;
49 | }
50 |
51 | public float easeOut(float t, float b, float c, float d) {
52 | return c * ((t = t / d - 1) * t * t + 1) + b;
53 | }
54 |
55 | public float easeInOut(float t, float b, float c, float d) {
56 | if ((t /= d / 2) < 1)
57 | return c / 2 * t * t * t + b;
58 | return c / 2 * ((t -= 2) * t * t + 2) + b;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/CustomEasing.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | this class is a port of greensock's excellent customease class
3 | http://www.greensock.com/customease/
4 |
5 | *****************************************/
6 |
7 | package de.looksgood.ani.easing;
8 |
9 | import java.util.ArrayList;
10 | import java.util.HashMap;
11 | import java.util.regex.Matcher;
12 | import java.util.regex.Pattern;
13 |
14 | import processing.core.PApplet;
15 |
16 | public class CustomEasing extends Easing {
17 | private static HashMap customEasingsLookup = new HashMap();
18 | private ArrayList segments = new ArrayList();
19 | private String name;
20 |
21 | private class Segment{
22 | public float s;
23 | public float cp;
24 | public float e;
25 |
26 | public Segment(float s, float cp, float e) {
27 | this.s = s;
28 | this.cp = cp;
29 | this.e = e;
30 | }
31 | }
32 |
33 | public CustomEasing(String theName, String theSegments){
34 | // no use here for easingMode ... just inherited from superclass
35 | setMode(easingMode);
36 |
37 | this.name = theName;
38 | this.segments = new ArrayList();
39 |
40 | // parse theSegments string in property list style
41 | // e.g. [{s:0,cp:0.54,e:0.748},{s:0.748,cp:0.956,e:0.832},{s:0.832,cp:0.708,e:1}]
42 | Pattern regex = Pattern.compile("\\{(.*?)\\}");
43 | Matcher regexMatcher = regex.matcher(theSegments.toLowerCase());
44 |
45 | while (regexMatcher.find()) {
46 | String segmentString = regexMatcher.group();
47 | segmentString = segmentString.replace( '{', ' ' );
48 | segmentString = segmentString.replace( '}', ' ' );
49 | segmentString = PApplet.trim(segmentString);
50 |
51 | String[] segmentPropertiesString = PApplet.split(segmentString,',');
52 | HashMap segmentProperties = new HashMap();
53 | for (int i = 0; i < segmentPropertiesString.length; i++) {
54 | String[] p = PApplet.split(PApplet.trim(segmentPropertiesString[i]),':');
55 | segmentProperties.put( PApplet.trim(p[0]), Float.parseFloat(p[1]) );
56 | }
57 | segments.add(new Segment(segmentProperties.get("s"),
58 | segmentProperties.get("cp"),
59 | segmentProperties.get("e") ));
60 | }
61 |
62 | customEasingsLookup.put(name, this);
63 | //System.out.println(ANI_DEBUG_PREFIX+" Info @ CustomEasing -> add CustomEasing: "+theName);
64 | }
65 |
66 | public static CustomEasing create(String theName, String theSegments) {
67 | CustomEasing tmp = new CustomEasing(theName, theSegments);
68 | return tmp;
69 | }
70 |
71 | public static CustomEasing byName(String theName) {
72 | return customEasingsLookup.get(theName);
73 | }
74 |
75 | public float easeIn(float t, float b, float c, float d) {
76 | return easeBezier(t, b, c, d);
77 | }
78 |
79 | public float easeOut(float t, float b, float c, float d) {
80 | return easeBezier(t, b, c, d);
81 | }
82 |
83 | public float easeInOut(float t, float b, float c, float d) {
84 | return easeBezier(t, b, c, d);
85 | }
86 | private float easeBezier(float t, float b , float c, float d) {
87 | float factor = t / d;
88 | int qty = segments.size();
89 | int i = (int)(qty * factor);
90 | i = PApplet.min(i, segments.size()-1);
91 | float time = (factor - (i * (1 / (float)qty))) * qty;
92 | Segment s = segments.get(i);
93 | //System.out.println("tmp: "+time);
94 | return b + c * (s.s + time * (2 * (1 - time) * (s.cp - s.s) + time * (s.e - s.s)));
95 | }
96 |
97 | }
98 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Easing.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/src/de/looksgood/ani/easing/Easing.java
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Elastic.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Elastic extends Easing {
39 | public Elastic(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Elastic(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | if (t == 0)
49 | return b;
50 | if ((t /= d) == 1)
51 | return b + c;
52 | float p = d * .3f;
53 | float a = c;
54 | float s = p / 4;
55 | return -(a * (float) Math.pow(2, 10 * (t -= 1)) * (float) Math.sin((t * d - s) * (2 * (float) Math.PI) / p)) + b;
56 | }
57 |
58 | public float easeOut(float t, float b, float c, float d) {
59 | if (t == 0)
60 | return b;
61 | if ((t /= d) == 1)
62 | return b + c;
63 | float p = d * .3f;
64 | float a = c;
65 | float s = p / 4;
66 | return (a * (float) Math.pow(2, -10 * t) * (float) Math.sin((t * d - s) * (2 * (float) Math.PI) / p) + c + b);
67 | }
68 |
69 | public float easeInOut(float t, float b, float c, float d) {
70 | if (t == 0)
71 | return b;
72 | if ((t /= d / 2) == 2)
73 | return b + c;
74 | float p = d * (.3f * 1.5f);
75 | float a = c;
76 | float s = p / 4;
77 | if (t < 1)
78 | return -.5f * (a * (float) Math.pow(2, 10 * (t -= 1)) * (float) Math.sin((t * d - s) * (2 * (float) Math.PI) / p)) + b;
79 | return a * (float) Math.pow(2, -10 * (t -= 1)) * (float) Math.sin((t * d - s) * (2 * (float) Math.PI) / p) * .5f + c + b;
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Expo.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Expo extends Easing {
39 | public Expo(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Expo(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | return (t == 0) ? b : c * (float) Math.pow(2, 10 * (t / d - 1)) + b;
49 | }
50 |
51 | public float easeOut(float t, float b, float c, float d) {
52 | return (t == d) ? b + c : c * (-(float) Math.pow(2, -10 * t / d) + 1) + b;
53 | }
54 |
55 | public float easeInOut(float t, float b, float c, float d) {
56 | if (t == 0)
57 | return b;
58 | if (t == d)
59 | return b + c;
60 | if ((t /= d / 2) < 1)
61 | return c / 2 * (float) Math.pow(2, 10 * (t - 1)) + b;
62 | return c / 2 * (-(float) Math.pow(2, -10 * --t) + 2) + b;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Linear.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Linear extends Easing {
39 | public Linear(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Linear(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | return easeNone(t, b, c, d);
49 | }
50 |
51 | public float easeOut(float t, float b, float c, float d) {
52 | return easeNone(t, b, c, d);
53 | }
54 |
55 | public float easeInOut(float t, float b, float c, float d) {
56 | return easeNone(t, b, c, d);
57 | }
58 | private float easeNone (float t,float b , float c, float d) {
59 | return c*t/d + b;
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Quad.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Quad extends Easing {
39 | public Quad(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Quad(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | return c * (t /= d) * t + b;
49 | }
50 |
51 | public float easeOut(float t, float b, float c, float d) {
52 | return -c * (t /= d) * (t - 2) + b;
53 | }
54 |
55 | public float easeInOut(float t, float b, float c, float d) {
56 | if ((t /= d / 2) < 1)
57 | return c / 2 * t * t + b;
58 | return -c / 2 * ((--t) * (t - 2) - 1) + b;
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Quart.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Quart extends Easing {
39 | public Quart(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Quart(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | return c * (t /= d) * t * t * t + b;
49 | }
50 |
51 | public float easeOut(float t, float b, float c, float d) {
52 | return -c * ((t = t / d - 1) * t * t * t - 1) + b;
53 | }
54 |
55 | public float easeInOut(float t, float b, float c, float d) {
56 | if ((t /= d / 2) < 1)
57 | return c / 2 * t * t * t * t + b;
58 | return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Quint.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Quint extends Easing {
39 | public Quint(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Quint(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | return c * (t /= d) * t * t * t * t + b;
49 | }
50 |
51 | public float easeOut(float t, float b, float c, float d) {
52 | return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
53 | }
54 |
55 | public float easeInOut(float t, float b, float c, float d) {
56 | if ((t /= d / 2) < 1)
57 | return c / 2 * t * t * t * t * t + b;
58 | return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/de/looksgood/ani/easing/Sine.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | TERMS OF USE - EASING EQUATIONS
3 | Open source under the BSD License.
4 | Copyright (c) 2001 Robert Penner
5 | JavaScript version copyright (C) 2006 by Philippe Maegerman
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions are
10 | met:
11 |
12 | * Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 | * Redistributions in binary form must reproduce the above
15 | copyright notice, this list of conditions and the following disclaimer
16 | in the documentation and/or other materials provided with the
17 | distribution.
18 | * Neither the name of the author nor the names of contributors may
19 | be used to endorse or promote products derived from this software
20 | without specific prior written permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | *****************************************/
35 |
36 | package de.looksgood.ani.easing;
37 |
38 | public class Sine extends Easing {
39 | public Sine(int theEasingMode){
40 | setMode(theEasingMode);
41 | }
42 |
43 | public Sine(){
44 | setMode(easingMode);
45 | }
46 |
47 | public float easeIn(float t, float b, float c, float d) {
48 | return -c * (float) Math.cos(t / d * (Math.PI / 2)) + c + b;
49 | }
50 |
51 | public float easeOut(float t, float b, float c, float d) {
52 | return c * (float) Math.sin(t / d * (Math.PI / 2)) + b;
53 | }
54 |
55 | public float easeInOut(float t, float b, float c, float d) {
56 | return -c / 2 * ((float) Math.cos(Math.PI * t / d) - 1) + b;
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/web/changelog.txt:
--------------------------------------------------------------------------------
1 | --------------------------------------------------------------------------
2 | Ani 2.7 - 2 June 2015
3 |
4 | New
5 | + Made Ani compatible with the upcoming Processing 3.0
6 | (pull request by Jens de Boer/jnsdbr and a gentle push by
7 | Benjamin Stephan/b3nson. Many thanks!)
8 |
9 |
10 | --------------------------------------------------------------------------
11 | Ani 2.6 - 8 November 2013
12 |
13 | New
14 | + CallbackObject property for callbacks on objects other than its own
15 | (pull request by ZeroMax-dev. Many Thanks!)
16 | + examples/Ani_in_Classes_Start_Delays
17 |
18 |
19 | --------------------------------------------------------------------------
20 | Ani 2.5 - 28 February 2013
21 |
22 | New
23 | + Introduced new callback feature "onUpdate".
24 | Many thanks to Jean-Maxime Couillard!
25 | + examples/Ani_PVector_Easing_Styles
26 | + examples/Ani_TimeModes/
27 |
28 | --------------------------------------------------------------------------
29 | Ani 2.4 - 19 October 2012
30 |
31 | Fix
32 | * Ani was not working correctly in combination with PVector.
33 | A big thank you to Till Nagel for spotting and reporting!
34 |
35 | New
36 | + examples/Ani_PVector
37 |
38 | --------------------------------------------------------------------------
39 | Ani 2.3 - 8 October 2012
40 |
41 | New
42 | + Introduced new callback feature "onDelayEnd"
43 | + examples/Ani_Callback_Delay_End
44 |
45 | --------------------------------------------------------------------------
46 | Ani 2.2 - 19 April 2012
47 |
48 | New
49 | + examples/Ani_Workaround_Android
50 | Thanks LimeJuice for the reminder to find a workaround for this old issue!
51 |
52 | Changes
53 | * AniCore. Reading and updating the target variable is now more efficient.
54 | No updating until after durationDelay has passed. Thanks to Slight Ic
55 | for the code snippet!
56 |
57 | --------------------------------------------------------------------------
58 | Ani 2.1 - 6 January 2012
59 |
60 | Fixes
61 | * Easing styles Ani.CUBIC_IN_OUT and Ani.CUBIC_OUT fixed. Now they are
62 | what their name says. Thank you Jean-Francois Renaud for reporting!
63 |
64 | New
65 | + examples/Ani_Sequence_Loop
66 | + examples/Ani_in_Classes_Bang
67 |
68 | --------------------------------------------------------------------------
69 | Ani 2.0 - 27 September 2011
70 |
71 | New
72 | + Possibility to have custom easings, based on greensock's customease
73 | class, see http://www.greensock.com/customease/
74 | + examples/Ani_Easing_Custom
75 |
76 | Changes
77 | * Refactoring of all easing parameters from type 'String' to type 'Easing'
78 |
79 | --------------------------------------------------------------------------
80 | Ani 1.3 - 1 August 2011
81 |
82 | New
83 | + library.properties
84 | fix compatibility for the upcoming processing 2.0
85 |
86 | --------------------------------------------------------------------------
87 | Ani 1.2 - 9 June 2010
88 |
89 | Performance improvement "under the hood" in AniCore:
90 | The updatePosition() function use no longer the java reflection
91 | mechanism ... which is good.
92 |
93 |
94 | --------------------------------------------------------------------------
95 | Ani 1.1 - 8 June 2010
96 |
97 | New Demos
98 | + collage space
99 | + valentine drips player and recorder
100 |
101 | New functions
102 | + Ani.killAll()
103 | Stops and kills all references to ongoing animations
104 | + AniUtil.shortRotation()
105 | calculates the minimal difference of two angles given in
106 | radians (helpfull for animating angles)
107 |
108 |
109 | --------------------------------------------------------------------------
110 | Ani 1.0 - 9 May 2010
111 |
112 | Initial release
--------------------------------------------------------------------------------
/web/img/Ani_Cheat_Sheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/Ani_Cheat_Sheet.png
--------------------------------------------------------------------------------
/web/img/ani.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/ani.png
--------------------------------------------------------------------------------
/web/img/arr_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/arr_big.png
--------------------------------------------------------------------------------
/web/img/arr_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/arr_small.png
--------------------------------------------------------------------------------
/web/img/color_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/color_about.png
--------------------------------------------------------------------------------
/web/img/color_demos.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/color_demos.png
--------------------------------------------------------------------------------
/web/img/color_download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/color_download.png
--------------------------------------------------------------------------------
/web/img/color_examples.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/color_examples.png
--------------------------------------------------------------------------------
/web/img/color_installation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/color_installation.png
--------------------------------------------------------------------------------
/web/img/color_reference.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/b-g/Ani/32163e100af160645fa8925056ec5bf06ea26251/web/img/color_reference.png
--------------------------------------------------------------------------------
/web/js/behaviour.js:
--------------------------------------------------------------------------------
1 |
2 | $(document).ready(function() {
3 |
4 | $('#menu a').click(function(e){
5 | var link = $(this).blur();
6 |
7 | $('html, body').animate({scrollTop: $(link.attr('href')).offset().top},'medium');
8 | return false;
9 | });
10 |
11 | $('.up').click(function(e){
12 | var link = $(this).blur();
13 |
14 | $('html, body').animate({scrollTop: $(link.attr('href')).offset().top},'medium');
15 | return false;
16 | });
17 |
18 | });
19 |
--------------------------------------------------------------------------------
/web/stylesheet.css:
--------------------------------------------------------------------------------
1 | * {
2 | margin:0;
3 | padding:0;
4 | border:0;
5 | }
6 |
7 |
8 | body {
9 | font-family : Lucida Grande, Verdana, Geneva, Arial, Helvetica, sans-serif;
10 | font-size : 100%;
11 | font-size : 12px;
12 | font-weight : normal;
13 | line-height : normal;
14 | }
15 |
16 | #container {
17 | margin-left:64px;
18 | background-color: #fff;
19 | }
20 |
21 | #header {
22 | float:left;
23 | padding-bottom: 36px;
24 | padding-top: 10px;
25 | }
26 |
27 | #content {
28 | float:left;
29 | }
30 |
31 | #sidebar {
32 | float:left;
33 | }
34 |
35 | /* Sidebar Items */
36 |
37 | #menu,
38 | #info,
39 | #reference,
40 | #cheatsheet,
41 | #source,
42 | #keywords {
43 | border-top: 5px solid #333;
44 | float:left;
45 | width: 160px;
46 | margin-bottom:10px;
47 | padding-top:5px;
48 | padding-left:1px;
49 | }
50 | #menu {
51 | padding-bottom: 12px;
52 | }
53 | #menu .about{
54 | background: url(img/color_about.png) center right no-repeat !important;
55 | padding-right: 20px !important;
56 | }
57 | #menu .download{
58 | background: url(img/color_download.png) center right no-repeat !important;
59 | padding-right: 20px !important;
60 | }
61 | #menu .installation{
62 | background: url(img/color_installation.png) center right no-repeat !important;
63 | padding-right: 20px !important;
64 | }
65 | #menu .examples{
66 | background: url(img/color_examples.png) center right no-repeat !important;
67 | padding-right: 20px !important;
68 | }
69 | #menu .demos{
70 | background: url(img/color_demos.png) center right no-repeat !important;
71 | padding-right: 20px !important;
72 | }
73 | #menu .reference{
74 | background: url(img/color_reference.png) center right no-repeat !important;
75 | padding-right: 20px !important;
76 | }
77 |
78 | #container a.up,
79 | #container a.up:visited {
80 | float: right;
81 | border: 0px;
82 | padding: 0px;
83 | font-size : 10px;
84 | text-decoration: none !important;
85 | background-image: none;
86 | }
87 |
88 | /* Content Items */
89 |
90 | #about, #about_more,
91 | #download,
92 | #examples,
93 | #demos,
94 | #installation,
95 | #short_reference ,#ani , #anisequence, #aniconstants,
96 | #misc {
97 | width:480px;
98 | float:left;
99 | margin-right:24px;
100 | margin-bottom:20px;
101 | padding:5px;
102 | background-color:#fff;
103 | }
104 |
105 | #about .about_text_color {
106 | color: #E8A100;
107 | }
108 |
109 | #about, #menu {
110 | font-size: 20px;
111 | }
112 |
113 | #about,#about_more {
114 | border-top: 20px solid #E8A100;
115 | }
116 |
117 | #download {
118 | border-top: 20px solid #95CBE8;
119 | }
120 |
121 | #installation {
122 | border-top: 20px solid #BFD6A4;
123 | }
124 |
125 | #examples {
126 | border-top: 20px solid #E6A9C4;
127 | }
128 |
129 | #demos {
130 | border-top: 20px solid #A79DC5;
131 | }
132 |
133 | #short_reference, #ani, #anisequence, #aniconstants {
134 | border-top: 20px solid #EBC29D;
135 | }
136 |
137 | #misc {
138 | border-top: 20px solid #A2A2A2;
139 | }
140 |
141 |
142 | .clear {
143 | clear:both;
144 | }
145 |
146 | #footer {
147 | padding-left:5px;
148 | height:20px;
149 | margin-bottom:32px;
150 | }
151 |
152 |
153 | ul {
154 | list-style:none;
155 | padding:0;
156 | margin:0;
157 | }
158 |
159 |
160 | #menu ul li, #subMenu ul li {
161 | float:left;
162 | padding-right:6px;
163 | }
164 |
165 | #menu li {
166 | background-image: url(img/arr_big.png);
167 | background-repeat: no-repeat;
168 | padding-left:22px;
169 | background-position: left center;
170 | }
171 |
172 |
173 |
174 |
175 |
176 |
177 | /* Headings */
178 |
179 | h1 {
180 | font-size:2em;
181 | font-weight:normal;
182 | }
183 |
184 |
185 | h3, h4, h5, th {
186 | font-size:20px;
187 | font-weight:normal;
188 | margin-bottom:4px;
189 | }
190 |
191 | h2 {
192 | font-size:20px;
193 | font-weight:normal;
194 | margin-bottom:4px;
195 | float: left;
196 | }
197 |
198 |
199 |
200 | p {
201 | font-size:1em;
202 | width:90%;
203 | margin-bottom:16px;
204 | clear:left;
205 | }
206 |
207 |
208 | pre, code {
209 | font-family:"Courier New", Courier, monospace;
210 | font-size:1em;
211 | line-height:normal;
212 | }
213 |
214 |
215 |
216 |
217 | hr {
218 | border:0;
219 | height:1px;
220 | margin-bottom:24px;
221 | }
222 |
223 | a:link, a:visited {
224 | text-decoration: none;
225 | border-bottom: 1px solid #000;
226 | font-weight: normal;
227 | background-image: url(img/arr_small.png);
228 | background-repeat: no-repeat;
229 | padding-left:14px;
230 | background-position: left center;
231 |
232 | }
233 |
234 | #about a:link, #about a:visited {
235 | background-image: url(img/arr_big.png);
236 | padding-left:22px;
237 | }
238 |
239 | #menu a:link, #menu a:visited {
240 | background-image: none;
241 | padding: 0px;
242 | border: none;
243 | }
244 |
245 | a:hover,
246 | a:active {
247 | text-decoration: none;
248 | font-weight: normal;
249 | }
250 |
251 |
252 |
253 |
254 |
255 |
256 | img {
257 | border: 0px solid #000000;
258 | }
259 | a.image-link, a.image-link {
260 | border:none;
261 | background-image:none;
262 | padding:0;
263 | }
264 |
265 |
266 | /* COLORS */
267 |
268 |
269 | body {
270 | color : #333;
271 | background-color :#f0f0f0;
272 | }
273 |
274 |
275 | #header {
276 | background-color:#f0f0f0;
277 | color:#333;
278 | }
279 |
280 |
281 | #content {
282 | background-color:#f0f0f0;
283 | }
284 |
285 |
286 |
287 | h1, h2, h3, h4, h5, h6 {
288 | color:#333;
289 | }
290 |
291 |
292 | pre, code {
293 | color: #000000;
294 | }
295 |
296 |
297 | a,strong {
298 | color: #333;
299 | }
300 |
301 |
302 | a:hover,
303 | a:active {
304 | color: #333;
305 | }
306 |
307 |
308 | a:visited,
309 | a:link:visited {
310 | color: #333;
311 | }
312 |
313 |
314 | #footer {
315 | background-color:#f0f0f0;
316 | color:#333;
317 | }
318 |
319 |
320 | #footer a, #menu a {
321 | color:#333;
322 | }
323 |
324 | br {
325 | clear: left;
326 | }
327 |
--------------------------------------------------------------------------------