All about qrcodes

Questions and information about using Lua scripting with Storyboard

Moderator: jamiev

All about qrcodes

Postby JohnW » Wed Apr 05, 2017 9:53 am

Hey there!

I found a nifty little lua library http://speedata.github.io/luaqrcode/ that, when you hand it a string, will return a table of positive or negative values that describe a qrcode.
This data by itself isn't very useful however with Storyboard's new canvas render extension we can easily turn this data into a visible QRCode. Take a look for yourself in the attached demo.

This is set up to change the background color and size of the QRCode. Sometimes darker backgrounds help with readability on certain apps.
User avatar
JohnW
 
Posts: 56
Joined: Wed May 08, 2013 4:52 pm

Re: All about qrcodes

Postby parthmbhatt » Tue May 29, 2018 2:02 pm

Hi John!

thanks for the library and the example, this is super useful!

However, when I download the file, there seems to be only the .gde file and no lua scripts.

Is the attachment perhaps missing some files?

Thanks!
parthmbhatt
 
Posts: 5
Joined: Tue May 29, 2018 12:38 pm

New Sample Available.

Postby MikeMarchand » Mon Nov 05, 2018 11:35 am

Hi parthmbhatt,

I would like to apologize for the delay in getting back to your question.

Here's a sample application that uses luaqrcode and the Storyboard Canvas Render Extension to draw QR codes in Storyboard.

To change the contents of the QR code in this example, just change the text in variable "Layer.info.text" and restart the application.

Good luck!
Mike
Attachments
QRTest.zip
Simple QR Code Canvas Application
(104.15 KiB) Downloaded 11 times
MikeMarchand
 
Posts: 31
Joined: Wed Jan 21, 2015 3:33 pm


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron