UNPKG

532 BJavaScriptView Raw
1/**
2 * Check that symbols are vertically centered
3 */
4
5const setup = require('./')
6
7let positions = [0,5, 5,5, 10,5, 15,5, 20,5, 25,5, 30,5, 35,5]
8let sizes = [150,150,150,150,150,150,150,150]
9let colors = Array(8*4).fill(0).map((v, i) => !((i + 1) % 4) ? .7 : 0)
10let glyphs = '●○■□◆◇+❌'.split('')
11let borderWidths = Array(8).fill(.5)
12let borderColors = Array(8*4).fill(0).map((v, i) => !((i+1) % 4) ? .7 : 1)
13
14
15setup({
16 positions,
17 sizes,
18 colors,
19 glyphs,
20 borderColors,
21 borderWidths
22})