align examples with readme

This commit is contained in:
codemasher
2018-01-21 18:18:01 +01:00
parent e9f3273b36
commit 5714ac312d
2 changed files with 22 additions and 22 deletions
+12 -12
View File
@@ -17,34 +17,34 @@ require_once __DIR__.'/../vendor/autoload.php';
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
$options = new QROptions([
'version' => 5,
'version' => 7,
'outputType' => QRCode::OUTPUT_IMAGE_PNG,
'eccLevel' => QRCode::ECC_L,
'scale' => 10,
'scale' => 5,
'imageBase64' => false,
'moduleValues' => [
// finder
1536 => [255, 0, 0], // dark (true)
1536 => [0, 63, 255], // dark (true)
6 => [255, 255, 255], // light (false), white is the transparency color and is enabled by default
// alignment
2560 => [255, 0, 0],
2560 => [255, 0, 255],
10 => [255, 255, 255],
// timing
3072 => [0, 0, 0],
12 => [200, 200, 200],
3072 => [255, 0, 0],
12 => [255, 255, 255],
// format
3584 => [0, 0, 0],
14 => [200, 200, 200],
3584 => [67, 191, 84],
14 => [255, 255, 255],
// version
4096 => [0, 0, 0],
16 => [200, 200, 200],
4096 => [62, 174, 190],
16 => [255, 255, 255],
// data
1024 => [0, 0, 150],
1024 => [0, 0, 0],
4 => [255, 255, 255],
// darkmodule
512 => [0, 0, 0],
// separator
8 => [200, 200, 200],
8 => [255, 255, 255],
// quietzone
18 => [255, 255, 255],
],
+10 -10
View File
@@ -18,13 +18,13 @@ $data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
$gzip = true;
$options = new QROptions([
'version' => 20,
'version' => 7,
'outputType' => QRCode::OUTPUT_MARKUP_SVG,
'eccLevel' => QRCode::ECC_L,
'scale' => 5,
'addQuietzone' => true,
'cssClass' => 'my-css-class',
'svgOpacity' => 0.8,
'svgOpacity' => 1.0,
'svgDefs' => '
<linearGradient id="g2">
<stop offset="0%" stop-color="#39F" />
@@ -38,28 +38,28 @@ $options = new QROptions([
'moduleValues' => [
// finder
1536 => 'url(#g1)', // dark (true)
6 => '#eee', // light (false)
6 => '#fff', // light (false)
// alignment
2560 => 'url(#g1)',
10 => '#eee',
10 => '#fff',
// timing
3072 => 'url(#g1)',
12 => '#eee',
12 => '#fff',
// format
3584 => 'url(#g1)',
14 => '#eee',
14 => '#fff',
// version
4096 => 'url(#g1)',
16 => '#eee',
16 => '#fff',
// data
1024 => 'url(#g2)',
4 => '#eee',
4 => '#fff',
// darkmodule
512 => 'url(#g1)',
// separator
8 => '#eee',
8 => '#fff',
// quietzone
18 => '#eee',
18 => '#fff',
],
]);