-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrogSongAnim.h
68 lines (52 loc) · 1.21 KB
/
FrogSongAnim.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include "TweenDuino.h"
using namespace TweenDuino;
enum Song {
FIRST,
SECOND,
THIRD,
F2_SONG1,
F2_SONG2,
F2_SONG3,
NONE
};
class FrogSongAnim {
public:
FrogSongAnim(short int r, short int g, short int b, float (&frog1RGB)[3], float (&frog2RGB)[3]);
void update();
void startFrog1Song1();
void startFrog1Song2();
void startFrog1Song3();
void startFrog2Song1();
void startFrog2Song2();
void startFrog2Song3();
void reset();
Song getCurrentFrog1Song();
private:
void updateFrog1();
void updateFrog2();
Song currentFrog1Song;
Song currentFrog2Song;
short int baselineR;
short int baselineG;
short int baselineB;
float (&frog1RGB)[3];
float (&frog2RGB)[3];
Timeline frog1Song1R;
Timeline frog1Song1G;
Timeline frog1Song1B;
Timeline frog1Song2R;
Timeline frog1Song2G;
Timeline frog1Song2B;
Timeline frog1Song3R;
Timeline frog1Song3G;
Timeline frog1Song3B;
Timeline frog2Song1R;
Timeline frog2Song1G;
Timeline frog2Song1B;
Timeline frog2Song2R;
Timeline frog2Song2G;
Timeline frog2Song2B;
Timeline frog2Song3R;
Timeline frog2Song3G;
Timeline frog2Song3B;
};