-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
82 lines (82 loc) · 1.07 KB
/
constants.js
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export const LABELS_20 = [
' ',
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
'11',
'12',
'13',
'14',
'15',
'16',
'17',
'18',
'19',
'20'
]
export const LABELS_100 = [
' ',
'00',
'10',
'20',
'30',
'40',
'50',
'60',
'70',
'80',
'90'
]
export const SCALE = 50
export const MATERIAL_OPTIONS = {
specular: 0x172022,
color: 0xf0f0f0,
shininess: 40,
flatShading: true
}
export const LABEL_COLOR = '#aaaaaa'
export const DICE_COLOR = '#202020'
export const AMBIENT_LIGHT_COLOR = 0xf0f5fb
export const SPOT_LIGHT_COLOR = 0xefdfd5
export const SELECTOR_BACK_COLORS = {
color: 0x404040,
shininess: 0,
emissive: 0x858787
}
export const DESK_COLOR = 0xffffff
export const KNOWN_TYPES = ['d4', 'd6', 'd8', 'd10', 'd12', 'd20', 'd100']
export const DICE_FACE_RANGE = {
d4: [1, 4],
d6: [1, 6],
d8: [1, 8],
d10: [0, 9],
d12: [1, 12],
d20: [1, 20],
d100: [0, 9]
}
export const DICE_MASS = {
d4: 300,
d6: 300,
d8: 340,
d10: 350,
d12: 350,
d20: 400,
d100: 350
}
export const DICE_INERTIA = {
d4: 5,
d6: 13,
d8: 10,
d10: 9,
d12: 8,
d20: 6,
d100: 9
}