FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

aztec_code_generator/README.md at master · tned73/aztec_code_generator · GitHub

Repository navigation

Latest commit

 

History

History
51 lines (41 loc) · 1.18 KB
  1. aztec_code_generator

README.md

File metadata and controls

51 lines (41 loc) · 1.18 KB

Aztec Code generator

Aztec Code generator in Python

Dependencies:

PIL - Python Imaging Library (or Pillow)

Usage:

data = 'Aztec Code 2D :)'
aztec_code = AztecCode(data)
aztec_code.save('aztec_code.png', module_size=4)

This code will generate an image file "aztec_code.png" with the Aztec Code that contains "Aztec Code 2D :)" text.

data = 'Aztec Code 2D :)'
aztec_code = AztecCode(data)
aztec_code.print_out()

This code will print out resulting 19x19 (compact) Aztec Code to the standard output.

      ##  # ## ####
 #   ## #####  ### 
 #  ##  # #   # ###
## #  #    ## ##   
    ## # #    # #  
## ############ # #
 ### #       ###  #
##   # ##### # ## #
 #   # #   # ##    
 # # # # # # ###   
    ## #   # ## ## 
#### # ##### ## #  
  # ##       ## ## 
 ##  ########### # 
  ##    # ##   ## #
     ## # ### #  ##
      ############ 
##   #     # ##   #
##  #    ## ###   #

License:

Released under The MIT License.


Back | FazBrowse Home | New Git URL