mirror of
https://github.com/Merricx/qrazybox.git
synced 2025-04-19 17:49:04 +02:00
fix : version bit : was char instead of bool
This commit is contained in:
parent
bfe213af7a
commit
3231700a78
1 changed files with 2 additions and 2 deletions
4
js/qr.js
4
js/qr.js
|
@ -132,9 +132,9 @@ function add_version_info(t, version){
|
||||||
x=0;
|
x=0;
|
||||||
for(let i = 17 - step; i>=0 ; i -= 3){
|
for(let i = 17 - step; i>=0 ; i -= 3){
|
||||||
// Bottom Left
|
// Bottom Left
|
||||||
draw_square(t, 4*version + 6 + step, x ,1, version_information_table[version - 7].toString().split("")[i]);
|
draw_square(t, 4*version + 6 + step, x ,1, BLACK_COLOR * parseInt(version_information_table[version - 7].toString().split("")[i]));
|
||||||
// Top Right
|
// Top Right
|
||||||
draw_square(t, x, 4*version + 6 + step ,1, version_information_table[version - 7].toString().split("")[i]);
|
draw_square(t, x, 4*version + 6 + step ,1, BLACK_COLOR * parseInt(version_information_table[version - 7].toString().split("")[i]));
|
||||||
|
|
||||||
x++;
|
x++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue