forked from ZacharyPerrico/object-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsketch.js
More file actions
47 lines (40 loc) · 916 Bytes
/
sketch.js
File metadata and controls
47 lines (40 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*------------------------------*\
* *
* Java Script Object Tracker *
* Version 2.4 *
* *
* Zachary Perrico *
* Chris Orban *
* & *
* STEMcoding *
* *
\*------------------------------*/
// Example Gifs
const GIFS = {
DROP : "https://i.imgur.com/qMYrKjb.gif",
TABLE : "https://i.imgur.com/49Sft56.gif",
THROW : "https://i.imgur.com/BdRE0kF.gif",
BOUNCE : "https://i.imgur.com/bRX8lp7.gif",
};
// fileName supports Imgur URLs
// Erase line to select from computer
fileName = GIFS.THROW;
ruler = {
x1: 55,
y1: 10,
x2: 125,
y2: 10,
};
bounds = {
xMin: 50,
yMin: 29,
xMax: 208,
yMax: 214,
};
fps = 240; // Usually 240
objectColors = [
[169, 40, 51],
];
backgroundColors = [
[81, 69, 69],
];