zmcartor / blocky Goto Github PK
View Code? Open in Web Editor NEWClientside QR codes with Coffeescript
Clientside QR codes with Coffeescript
Blocky: Client-side QR codes with <canvas> and CoffeScript! Author: Zach McArtor hackazach.net (C) CopyRight Zach McArtor Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php v1.0 17/6/2011 Dependencies: To use, you will need to include the awesome QR library from Kazuhiko Arasé http://www.d-project.com/qrcode/index.html The JS library after the 11/5/2011 update is included within this project. Installation: The compiled javascript is included from the associated .coffee file. Include this in your page after qrcode.js (Kazuhiko's library) Usage: All you need to do is make a new Blocky! <script type ="text/javascript"> new Blocky('http://hackazach.net' ,'funfun', {cell_size:11, scriptheme:'watermelon'}) </script> Constructor Arguments: new Blocky( QR_code_message, id_of_container , config_object) A <canvas> element is appended to the container. The config object takes the following values: cell_size: the size of the QR cells. Generally just think of it as the size of the QR code. Default 4. black: the color to use as 'black' in the QR code. pass as a quoted rgb value like "rgb(1,2,3)" white: just like black, only... white. error_level: the QR error level to use. Acceptable values: M , H , Q, L. Default H Color schemes There are a couple pre-built color schemes for fun. try scheme names watermelon , wedding, arctic or spicy Have fun! _Zach
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.