Skip to content

Commit

Permalink
[release] v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aruZeta committed Sep 20, 2022
1 parent 1c75b77 commit 666797a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion QRgen.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "2.1.0"
version = "2.1.1"
author = "aruZeta"
description = "A QR code generation library."
license = "MIT"
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/logo.svg"
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/logo.svg"
width="300px" height="300px" />
</p>

Expand Down Expand Up @@ -44,7 +44,7 @@ let myQR = newQR("https://github.com/aruZeta/QRgen")
<tr>
<td align="center">
<pre>myQR.printTerminal</pre>
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/terminal-example.png" width="200px" height="200px"/>
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/terminal-example.png" width="200px" height="200px"/>
</td>
</tr>
</tbody>
Expand All @@ -59,7 +59,7 @@ let myQR = newQR("https://github.com/aruZeta/QRgen")
<tr>
<td align="center">
<pre>myQR.printSvg</pre>
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/svg-example.svg" width="200px" height="200px" />
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/svg-example.svg" width="200px" height="200px" />
<p>Generic QR with white background and black foreground.</p>
</td>
</tr>
Expand All @@ -68,7 +68,7 @@ let myQR = newQR("https://github.com/aruZeta/QRgen")
<tr>
<td align="center">
<pre>myQR.printSvg("#1d2021","#98971a")</pre>
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/svg-colors-example.svg" width="200px" height="200px" />
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/svg-colors-example.svg" width="200px" height="200px" />
<p><code>"#1d2021"</code> is the "light" or "background" color</p>
<p><code>"#98971a"</code> is the "dark" or "foreground" color</p>
</td>
Expand All @@ -78,7 +78,7 @@ let myQR = newQR("https://github.com/aruZeta/QRgen")
<tr>
<td align="center">
<pre>myQR.printSvg("#1d2021","#98971a",60)</pre>
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/svg-rounded-example.svg" width="200px" height="200px"/>
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/svg-rounded-example.svg" width="200px" height="200px"/>
<p><code>60</code> sets the alignment pattern's roundness to 60%</p>
</td>
</tr>
Expand All @@ -87,7 +87,7 @@ let myQR = newQR("https://github.com/aruZeta/QRgen")
<tr>
<td align="center">
<pre>myQR.printSvg("#1d2021","#98971a",100,100)</pre>
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/svg-very-rounded-example.svg" width="200px" height="200px" />
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/svg-very-rounded-example.svg" width="200px" height="200px" />
<p>The last <code>100</code> sets the module's roundness to 100%
(a perfect circle)</p>
</td>
Expand All @@ -97,7 +97,7 @@ let myQR = newQR("https://github.com/aruZeta/QRgen")
<tr>
<td align="center">
<pre>myQR.printSvg("#1d2021","#98971a",100,100,50)</pre>
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/svg-separation-example.svg" width="200px" height="200px" />
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/svg-separation-example.svg" width="200px" height="200px" />
<p>
The last <code>50</code> sets the module's separation to 50%
(making the module having a width of 1 into a width of 0.6,
Expand All @@ -112,7 +112,7 @@ let myQR = newQR("https://github.com/aruZeta/QRgen")
Here we will need the highest EC level, for a better result (bigger logo):
<pre>let myQR = newQR("https://github.com/aruZeta/QRgen", ecLevel=qrECH)</pre>
<pre>myQR.printSvg("#1d2021","#98971a",100,100,svgImg=readFile("QRgen-logo.svg"))</pre>
<img src="https://github.com/aruZeta/QRgen/blob/develop/share/img/svg-embed-example.svg" width="200px" height="200px" />
<img src="https://github.com/aruZeta/QRgen/blob/main/share/img/svg-embed-example.svg" width="200px" height="200px" />
<p>
<code>svgImg</code> adds an SVG image embed in the center of generated
QR code, so we can pass it the contents of an SVG file, here a logo, and
Expand All @@ -129,7 +129,7 @@ https://user-images.githubusercontent.com/68018085/190470749-66090814-08fe-45b5-

https://user-images.githubusercontent.com/68018085/190470760-8a5b5a30-5812-4777-8e05-8d2b250a9113.mp4

Also, check the [docs](https://aruzeta.github.io/QRgen/develop/QRgen.html) to
Also, check the [docs](https://aruzeta.github.io/QRgen/main/QRgen.html) to
know more about the main API.

# License
Expand Down

0 comments on commit 666797a

Please sign in to comment.