updates
This commit is contained in:
parent
449b99f1ca
commit
0404dfc5e4
Binary file not shown.
11
QRCodex.py
11
QRCodex.py
|
@ -1,12 +1,15 @@
|
||||||
import io
|
import io
|
||||||
|
import random
|
||||||
|
import string
|
||||||
# Importing Image and ImageFont, ImageDraw module from PIL package
|
# Importing Image and ImageFont, ImageDraw module from PIL package
|
||||||
from PIL import Image, ImageFont, ImageDraw
|
from PIL import Image, ImageFont, ImageDraw
|
||||||
#import QRcode generator lib
|
#import QRcode generator lib
|
||||||
import qrcode
|
import qrcode
|
||||||
|
|
||||||
#set the text and the code here
|
#set the text and the code here
|
||||||
text = "█SLHJD!■C■KOQFHY■PKJSOOFH■BY■ONDTTX■GRC■ADLYJ■ZBSH■SOITRM●JKUHSOK●ZA■MAOLH■RVHRPJ!■█"
|
#text = "█SLHJD!■C■KOQFHY■PKJSOOFH■BY■ONDTTX■GRC■ADLYJ■ZBSH■SOITRM●JKUHSOK●ZA■MAOLH■RVHRPJ!■█"
|
||||||
code = "TCHERNOBYL" #3💪+1👒+2👕+1🧥+1🧣+1🔫+4👂=🤠+❓TCHERNOBYL
|
text = ''.join(random.choices(string.ascii_uppercase + string.digits, k=441))
|
||||||
|
code = "📜📐✂️🕳️🔎🔠" #3💪+1👒+2👕+1🧥+1🧣+1🔫+4👂=🤠+❓TCHERNOBYL
|
||||||
|
|
||||||
textsize = 30 #px
|
textsize = 30 #px
|
||||||
|
|
||||||
|
@ -15,7 +18,7 @@ qr = qrcode.QRCode(
|
||||||
version=1, #smallest
|
version=1, #smallest
|
||||||
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
||||||
box_size=10,
|
box_size=10,
|
||||||
border=0,
|
border=1,
|
||||||
)
|
)
|
||||||
qr.add_data(code)
|
qr.add_data(code)
|
||||||
|
|
||||||
|
@ -47,7 +50,7 @@ for i, inner_list in enumerate(boolmatrix):
|
||||||
color="black"
|
color="black"
|
||||||
else:
|
else:
|
||||||
font=fontnormal
|
font=fontnormal
|
||||||
color="grey"
|
color=(64,64,64)
|
||||||
# drawing a black box if the letter is █
|
# drawing a black box if the letter is █
|
||||||
if (letter == '█'):
|
if (letter == '█'):
|
||||||
if (element):
|
if (element):
|
||||||
|
|
BIN
codex.png
BIN
codex.png
Binary file not shown.
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 223 KiB |
Binary file not shown.
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 322 KiB |
BIN
qrcode.png
BIN
qrcode.png
Binary file not shown.
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 506 B |
Loading…
Reference in New Issue