-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharray_size_test.ts
64 lines (55 loc) · 1.22 KB
/
array_size_test.ts
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
let numPixels = 256
let pixelAnimations: number[][][] = []
let pixelColors: number[][] = []
for (let i = 0; i < numPixels; i++) {
basic.showNumber(i)
pixelColors[i] = [ // it now goes to ~110+
/*colorNowR:*/ 0,
/*colorNowG:*/ 0,
/*colorNowB:*/ 0,
/*colorToR:*/ 235,
/*colorToR:*/ 235,
/*colorToR:*/ 0,
/*framesFor transition:*/ 0,
]
/*
pixelAnimations[i] = [
[6,7],
[6,7],
[6,7],
[6,7],
[6,7],
[6,7],
[6,7],
]
*/
/**
// real code
pixelAnimations[i] = [
{
color: neopixel.rgb(50, 50, 0),
frames: 3
},
{
color: neopixel.rgb(120, 120, 0),
frames: 3
},
{
color: neopixel.rgb(235, 235, 0),
frames: 8
},
{
color: neopixel.rgb(180, 180, 0),
frames: 3
},
{
color: neopixel.rgb(50, 50, 0),
frames: 3
},
{
color: neopixel.rgb(0, 0, 0),
frames: 0
}
]
*/
}