This commit is contained in:
Jérémie GABOLDE 2025-03-02 00:18:55 +01:00
parent 449b99f1ca
commit 0404dfc5e4
6 changed files with 125 additions and 4 deletions

BIN
Enigme pas facile.odt Normal file

Binary file not shown.

View File

@ -1,12 +1,15 @@
import io
import random
import string
# Importing Image and ImageFont, ImageDraw module from PIL package
from PIL import Image, ImageFont, ImageDraw
#import QRcode generator lib
import qrcode
#set the text and the code here
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 = "█SLHJD!■C■KOQFHY■PKJSOOFH■BY■ONDTTX■GRC■ADLYJ■ZBSH■SOITRM●JKUHSOK●ZA■MAOLH■RVHRPJ!■█"
text = ''.join(random.choices(string.ascii_uppercase + string.digits, k=441))
code = "📜📐✂️🕳️🔎🔠" #3💪+1👒+2👕+1🧥+1🧣+1🔫+4👂=🤠+❓TCHERNOBYL
textsize = 30 #px
@ -15,7 +18,7 @@ qr = qrcode.QRCode(
version=1, #smallest
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=0,
border=1,
)
qr.add_data(code)
@ -47,7 +50,7 @@ for i, inner_list in enumerate(boolmatrix):
color="black"
else:
font=fontnormal
color="grey"
color=(64,64,64)
# drawing a black box if the letter is █
if (letter == ''):
if (element):

BIN
codex.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 223 KiB

BIN
enigme pas facile.pdf Normal file

Binary file not shown.

118
enigme pas facile.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 351 B

After

Width:  |  Height:  |  Size: 506 B