x and y in example code? #11

vdh opened this Issue Nov 24, 2011 · 3 comments


None yet
4 participants

vdh commented Nov 24, 2011

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.

pisi commented Apr 11, 2012

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


bjornblomqvist commented Jun 3, 2015

I have changed the example so this is no longer a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment