Skip to content

QR code generator library

License

Notifications You must be signed in to change notification settings

novant-io/qrgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QrGen

Installation

Install into your current Fantom repo using fanr -- full API docs over on Eggbox:

$ fanr install qrgen

Usage

A Fantom API for generating QR codes.

c := QrCode.encodeStr("Hello World")
c.renderPng(out)

Command line utilties:

$ fan qrgen "Hello World" --png test.png

$ fan qrgen "Hello World" --dump
## QR CODE ##
  text: Hello World
  ver:  1
  ecc:  medium
  size: 21

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

This project is based on and includes code from QR-Code-generator.