-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimations_basic.cpp
More file actions
56 lines (39 loc) · 1.18 KB
/
Copy pathanimations_basic.cpp
File metadata and controls
56 lines (39 loc) · 1.18 KB
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
#include "animations_basic.h"
uint16_t anim_colorcycle_cur = 0;
// Colorcycle
void anim_colorcycle_start() {
// Reset color to start
anim_colorcycle_cur = 0;
}
void anim_colorcycle_draw() {
gl_fillscreen(COLOR_HSV(anim_colorcycle_cur, 255, 255));
// No need for modulo, overflows at exactly the right point
anim_colorcycle_cur += ANIM_COLORCYCLE_STEP;
}
// Colorcycle Slow
void anim_colorcycleslow_start() {
// Reset color to start
anim_colorcycle_cur = 0;
}
void anim_colorcycleslow_draw() {
gl_fillscreen(COLOR_HSV(anim_colorcycle_cur, 255, 255));
// No need for modulo, overflows at exactly the right point
anim_colorcycle_cur += ANIM_COLORCYCLE_SLOW_STEP;
}
// Colorcycle UltraSlow
void anim_colorcycleuslow_start() {
// Reset color to start
anim_colorcycle_cur = 0;
}
void anim_colorcycleuslow_draw() {
gl_fillscreen(COLOR_HSV(anim_colorcycle_cur, 255, 255));
// No need for modulo, overflows at exactly the right point
anim_colorcycle_cur += ANIM_COLORCYCLE_USLOW_STEP;
}
// Perlin Noise
void anim_perlinnoise_start() {
}
void anim_perlinnoise_draw() {
// TODO: implement this
gl_fillscreen(COLOR(255, 0, 255));
}