In this small snippet, I would like to show you how to generate colorized QR-Codes using python:
import qrcode
from qrcode.constants import ERROR_CORRECT_M as ERR_M
qr = qrcode.QRCode( version = 2, error_correction = ERR_M, box_size = 4, border = 2 )
qr.add_data( 'http://www.unimedia-webservice.de' )
qrimg = qr.make_image().convert( 'RGBA' )
pixels = qrimg.load()
for x in range( qrimg.size[0] ):
for y in range( qrimg.size[0] ):
if pixels[x,y] == ( 255, 255, 255, 255 ):
pixels[x,y] = ( 17, 136, 207, 255 ) # RGBA for background
else:
pixels[x,y] = ( 0, 5, 128, 255 ) # RGBA for code
qrimg.show() # or save: qrimg.save( 'qr-code.png', 'PNG' )
The python qrcode library (https://pypi.python.org/pypi/qrcode) is used to generate the QR-Code.
Result
And here is what it looks like:
There are even a choose few slots aimed specifically on the Korean market. Koreans can even take pleasure in in style jackpot slot games, progressive slots and waterfall slots. South 먹튀사이트 먹튀프렌즈 Korean players playing in a casino can verify cellular choices from the web site} homepage. Most digital playing websites present Koreans on-line betting with a link to obtain the respective cellular app in accordance with their cellular system, be it Android or iOS systems. The cellular curated playing exercise is achievable by way of the instant play function obtainable through residents’ functions. Moreover, the web casino South Korea presents a “No Deposit Bonuses” facility.
ReplyDelete