|
@@ -19,7 +19,14 @@ tape.test("Draw frame", function(test){
|
19
|
19
|
foregroundColor: "#fff",
|
20
|
20
|
waveTop: 340,
|
21
|
21
|
waveBottom: 380,
|
22
|
|
- waveform: [[0, 1, 0], [1, 0.1, 1]]
|
|
22
|
+ waveform: [
|
|
23
|
+ [
|
|
24
|
+ [0, 0], [-1, 1], [0, 0]
|
|
25
|
+ ],
|
|
26
|
+ [
|
|
27
|
+ [-1, 1], [-0.1, 0.1], [-1, 1]
|
|
28
|
+ ]
|
|
29
|
+ ]
|
23
|
30
|
};
|
24
|
31
|
|
25
|
32
|
initializeCanvas(options, function(err, renderer){
|
|
@@ -48,7 +55,14 @@ tape.test("Default colors", function(test){
|
48
|
55
|
height: 720,
|
49
|
56
|
waveTop: 340,
|
50
|
57
|
waveBottom: 380,
|
51
|
|
- waveform: [[0, 1, 0], [1, 0.1, 1]]
|
|
58
|
+ waveform: [
|
|
59
|
+ [
|
|
60
|
+ [0, 0], [-1, 1], [0, 0]
|
|
61
|
+ ],
|
|
62
|
+ [
|
|
63
|
+ [-1, 1], [-0.1, 0.1], [-1, 1]
|
|
64
|
+ ]
|
|
65
|
+ ]
|
52
|
66
|
};
|
53
|
67
|
|
54
|
68
|
initializeCanvas(options, function(err, renderer){
|
|
@@ -79,7 +93,14 @@ tape.test("Square frame", function(test){
|
79
|
93
|
foregroundColor: "#fff",
|
80
|
94
|
waveTop: 340,
|
81
|
95
|
waveBottom: 380,
|
82
|
|
- waveform: [[0, 1, 0], [1, 0.1, 1]]
|
|
96
|
+ waveform: [
|
|
97
|
+ [
|
|
98
|
+ [0, 0], [-1, 1], [0, 0]
|
|
99
|
+ ],
|
|
100
|
+ [
|
|
101
|
+ [-1, 1], [-0.1, 0.1], [-1, 1]
|
|
102
|
+ ]
|
|
103
|
+ ]
|
83
|
104
|
};
|
84
|
105
|
|
85
|
106
|
initializeCanvas(options, function(err, renderer){
|