import qrcode
import time

print("""
░██████╗░██████╗░  ░█████╗░░█████╗░██████╗░███████╗  ░█████╗░██████╗░███████╗░█████╗░████████╗░█████╗░██████╗░
██╔═══██╗██╔══██╗  ██╔══██╗██╔══██╗██╔══██╗██╔════╝  ██╔══██╗██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗
██║██╗██║██████╔╝  ██║░░╚═╝██║░░██║██║░░██║█████╗░░  ██║░░╚═╝██████╔╝█████╗░░███████║░░░██║░░░██║░░██║██████╔╝
╚██████╔╝██╔══██╗  ██║░░██╗██║░░██║██║░░██║██╔══╝░░  ██║░░██╗██╔══██╗██╔══╝░░██╔══██║░░░██║░░░██║░░██║██╔══██╗
░╚═██╔═╝░██║░░██║  ╚█████╔╝╚█████╔╝██████╔╝███████╗  ╚█████╔╝██║░░██║███████╗██║░░██║░░░██║░░░╚█████╔╝██║░░██║
░░░╚═╝░░░╚═╝░░╚═╝  ░╚════╝░░╚════╝░╚═════╝░╚══════╝  ░╚════╝░╚═╝░░╚═╝╚══════╝╚═╝░░╚═╝░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝

██████╗░██╗░░░██╗  ░█████╗░███╗░░██╗██╗██╗░░██╗░█████╗░
██╔══██╗╚██╗░██╔╝  ██╔══██╗████╗░██║██║██║░██╔╝██╔══██╗
██████╦╝░╚████╔╝░  ███████║██╔██╗██║██║█████═╝░██║░░██║
██╔══██╗░░╚██╔╝░░  ██╔══██║██║╚████║██║██╔═██╗░██║░░██║
██████╦╝░░░██║░░░  ██║░░██║██║░╚███║██║██║░╚██╗╚█████╔╝
╚═════╝░░░░╚═╝░░░  ╚═╝░░╚═╝╚═╝░░╚══╝╚═╝╚═╝░░╚═╝░╚════╝░""")

box = 10
border_a = 3

data = input ("QRCODE DATA: ")
time.sleep(1)
print("""
""")
op = input ("You want to change advanced settings? y/n: ")
time.sleep(1)
if op == "n":
    time.sleep(1)
elif op == "y":
    print("""
""")
    box=input("Box size. Number: ")
    print("""
""")
    border_a=input("Border. Number: ")
img = qrcode.make('')
type(img)

qr = qrcode.QRCode(
    version=2,
    error_correction=qrcode.constants.ERROR_CORRECT_L,
    box_size=10,
    border=3,
)
qr.add_data(data)
qr.make(fit=True)
print("""
""")
print ("Color name: https://valiomkalik.web.app/color.txt")
color_a = input ("Fill color RGB or name: ") 
print("""
""")
color_b = input ("Back color RGB or name: ") 

img = qr.make_image(fill_color=color_a, back_color=color_b)
print("""
""")
name = input ("Name file, eg- test.png : ")

img.save(name)
