GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Correct me if I'm wrong, but don't you have the x and y variables named the wrong way around in that example code?
The method is is_dark( row, col ), so it really should be a y loop containing an x loop, with @qr.dark?(y,x) instead.
is_dark( row, col )
It is exactly so. I've been questioning myself why my QR codes can not be read by any device and you solved the mystery for me :) Flipping the x,y from example and using .dark?(y,x) instead did indeed make my QRs readable. Thank you @vdh! Glad I found this issue...
I had the same issue...fixed by switching x & y
I have changed the example so this is no longer a problem.