]> git.r.bdr.sh - rbdr/sumo/blob - lib/config.js
Draw the Arena (#7)
[rbdr/sumo] / lib / config.js
1 /**
2 Changes the stiffness on the node when it's less extended
3 *
4 * @name Config
5 * @type object
6 */
7 const config = {
8
9 /**
10 * How many pixels to use per meter
11 *
12 * @property {number} meterSize
13 * @memberof Config
14 */
15 meterSize: 25,
16
17 /**
18 * Aspect Ratio the aspect ratio expressed as an array of two numbers
19 *
20 * @property {number} aspectRatio
21 * @memberof Config
22 */
23 aspectRatio: [2.76, 1],
24
25 /**
26 * Target vertical resolution
27 *
28 * @property {number} verticalResolution
29 * @memberof Config
30 */
31 verticalResolution: 224
32
33 };
34
35 /**
36 * How many pixels to use per meter
37 *
38 * @property {number} meterSize
39 * @memberof Config
40 */
41 config.horizontalResolution = Math.round(config.verticalResolution * config.aspectRatio[0] / config.aspectRatio[1]);
42
43 export default config;