-
Notifications
You must be signed in to change notification settings - Fork 9
/
notes_to_myself.ino
73 lines (45 loc) · 1.26 KB
/
notes_to_myself.ino
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
/*
Blend Mode ideas:
dynamic darken
Subtraction a-b
Multiply a * b/255
Color burn 255-((255-a)/b)
dynamic lighten
add a+b
screen. 255-(255-a)(255-b)
color dodge. a/(255-b)
static darkening filter
linear_filter(height) *y/(num_y-1)
radial_filter(radius) dist/radius
to do:
fix move.linear / angular ratio, range & speed
set up one call standard oscillators
set up one call "blank" template for shorter animation code
set up write_pixel(show1, show2, show3);
formating readme
idle light routine (>=min brightnes)
*/
void run_default_oscillators(){
timings.master_speed = 0.005; // master speed
timings.ratio[0] = 1; // speed ratios for the oscillators, higher values = faster transitions
timings.ratio[1] = 2;
timings.ratio[2] = 3;
timings.ratio[3] = 4;
timings.ratio[4] = 5;
timings.ratio[5] = 6;
timings.ratio[6] = 7;
timings.ratio[7] = 8;
timings.ratio[8] = 9;
timings.ratio[9] = 10;
timings.offset[0] = 000;
timings.offset[1] = 100;
timings.offset[2] = 200;
timings.offset[3] = 300;
timings.offset[4] = 400;
timings.offset[5] = 500;
timings.offset[6] = 600;
timings.offset[7] = 700;
timings.offset[8] = 800;
timings.offset[9] = 900;
calculate_oscillators(timings);
}