|
17 | 17 | 'version' => 7, |
18 | 18 | 'outputType' => QROutputInterface::GDIMAGE_PNG, |
19 | 19 | 'eccLevel' => EccLevel::L, |
20 | | - 'scale' => 10, |
| 20 | + 'scale' => 20, |
21 | 21 | 'imageBase64' => false, |
22 | | - 'bgColor' => [200, 200, 200], |
| 22 | + 'bgColor' => [200, 150, 200], |
23 | 23 | 'imageTransparent' => false, |
24 | 24 | 'drawCircularModules' => true, |
25 | 25 | 'circleRadius' => 0.4, |
26 | 26 | 'keepAsSquare' => [ |
27 | | - (QRMatrix::M_FINDER|QRMatrix::IS_DARK), |
| 27 | + QRMatrix::M_FINDER_DARK, |
28 | 28 | QRMatrix::M_FINDER_DOT, |
29 | | - (QRMatrix::M_ALIGNMENT|QRMatrix::IS_DARK), |
| 29 | + QRMatrix::M_ALIGNMENT_DARK, |
30 | 30 | ], |
31 | 31 | 'moduleValues' => [ |
32 | 32 | // finder |
33 | | - (QRMatrix::M_FINDER | QRMatrix::IS_DARK) => [0, 63, 255], // dark (true) |
34 | | - QRMatrix::M_FINDER => [233, 233, 233], // light (false), white is the transparency color and is enabled by default |
35 | | - (QRMatrix::M_FINDER_DOT | QRMatrix::IS_DARK) => [0, 63, 255], // finder dot, dark (true) |
| 33 | + QRMatrix::M_FINDER_DARK => [0, 63, 255], // dark (true) |
| 34 | + QRMatrix::M_FINDER_DOT => [0, 63, 255], // finder dot, dark (true) |
| 35 | + QRMatrix::M_FINDER => [233, 233, 233], // light (false), white is the transparency color and is enabled by default |
36 | 36 | // alignment |
37 | | - (QRMatrix::M_ALIGNMENT | QRMatrix::IS_DARK) => [255, 0, 255], |
38 | | - QRMatrix::M_ALIGNMENT => [233, 233, 233], |
| 37 | + QRMatrix::M_ALIGNMENT_DARK => [255, 0, 255], |
| 38 | + QRMatrix::M_ALIGNMENT => [233, 233, 233], |
39 | 39 | // timing |
40 | | - (QRMatrix::M_TIMING | QRMatrix::IS_DARK) => [255, 0, 0], |
41 | | - QRMatrix::M_TIMING => [233, 233, 233], |
| 40 | + QRMatrix::M_TIMING_DARK => [255, 0, 0], |
| 41 | + QRMatrix::M_TIMING => [233, 233, 233], |
42 | 42 | // format |
43 | | - (QRMatrix::M_FORMAT | QRMatrix::IS_DARK) => [67, 159, 84], |
44 | | - QRMatrix::M_FORMAT => [233, 233, 233], |
| 43 | + QRMatrix::M_FORMAT_DARK => [67, 159, 84], |
| 44 | + QRMatrix::M_FORMAT => [233, 233, 233], |
45 | 45 | // version |
46 | | - (QRMatrix::M_VERSION | QRMatrix::IS_DARK) => [62, 174, 190], |
47 | | - QRMatrix::M_VERSION => [233, 233, 233], |
| 46 | + QRMatrix::M_VERSION_DARK => [62, 174, 190], |
| 47 | + QRMatrix::M_VERSION => [233, 233, 233], |
48 | 48 | // data |
49 | | - (QRMatrix::M_DATA | QRMatrix::IS_DARK) => [0, 0, 0], |
50 | | - QRMatrix::M_DATA => [233, 233, 233], |
| 49 | + QRMatrix::M_DATA_DARK => [0, 0, 0], |
| 50 | + QRMatrix::M_DATA => [233, 233, 233], |
51 | 51 | // darkmodule |
52 | | - (QRMatrix::M_DARKMODULE | QRMatrix::IS_DARK) => [0, 0, 0], |
| 52 | + QRMatrix::M_DARKMODULE => [0, 0, 0], |
53 | 53 | // separator |
54 | | - QRMatrix::M_SEPARATOR => [233, 233, 233], |
| 54 | + QRMatrix::M_SEPARATOR => [233, 233, 233], |
55 | 55 | // quietzone |
56 | | - QRMatrix::M_QUIETZONE => [233, 233, 233], |
| 56 | + QRMatrix::M_QUIETZONE => [233, 233, 233], |
57 | 57 | // logo (requires a call to QRMatrix::setLogoSpace()), see QRImageWithLogo |
58 | | - QRMatrix::M_LOGO => [233, 233, 233], |
| 58 | + QRMatrix::M_LOGO => [233, 233, 233], |
59 | 59 | ], |
60 | 60 | ]); |
61 | 61 |
|
|
0 commit comments