1 |
|
2 |
|
3 |
|
4 |
|
5 | const setup = require('./')
|
6 |
|
7 | let N = 1e3
|
8 |
|
9 | let positions = Array(N*2).fill(0).map((v, i) => (Math.random() * 10 - 5) )
|
10 | let sizes = Array(N).fill(0).map(v => 10)
|
11 | let colors = Array(N*4).fill(0).map((v, i) => !((i + 1) % 4) ? .7 : Math.random())
|
12 | let glyphs = Array(N).fill('●')
|
13 | let borderWidths = Array(N).fill(.5)
|
14 | let borderColors = Array(N*4).fill(0).map((v, i) => !((i+1) % 4) ? .7 : 1)
|
15 |
|
16 | setup({
|
17 | positions,
|
18 | sizes,
|
19 | colors,
|
20 | glyphs,
|
21 | borderColors,
|
22 | borderWidths
|
23 | })
|