Searched defs:QRMaskPattern (Results 1 - 1 of 1) sorted by relevance

/inkscape/share/extensions/
H A Drender_barcode_qrcode.py424 class QRMaskPattern: class in inherits:
507 if maskPattern == QRMaskPattern.PATTERN000 : return (i + j) % 2 == 0
508 if maskPattern == QRMaskPattern.PATTERN001 : return i % 2 == 0
509 if maskPattern == QRMaskPattern.PATTERN010 : return j % 3 == 0
510 if maskPattern == QRMaskPattern.PATTERN011 : return (i + j) % 3 == 0
511 if maskPattern == QRMaskPattern.PATTERN100 : return (math.floor(i / 2) + math.floor(j / 3) ) % 2 == 0
512 if maskPattern == QRMaskPattern.PATTERN101 : return (i * j) % 2 + (i * j) % 3 == 0
513 if maskPattern == QRMaskPattern.PATTERN110 : return ( (i * j) % 2 + (i * j) % 3) % 2 == 0
514 if maskPattern == QRMaskPattern.PATTERN111 : return ( (i * j) % 3 + (i + j) % 2) % 2 == 0

Completed in 16 milliseconds