MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / is_eye

Method is_eye

qrcode/image/base.py:99–107  ·  view source on GitHub ↗

Find whether the referenced module is in an eye.

(self, row: int, col: int)

Source from the content-addressed store, hash-verified

97 return kind
98
99 def is_eye(self, row: int, col: int):
100 """
101 Find whether the referenced module is in an eye.
102 """
103 return (
104 (row < 7 and col < 7)
105 or (row < 7 and self.width - col < 8)
106 or (self.width - row < 8 and col < 7)
107 )
108
109
110class BaseImageWithDrawer(BaseImage):

Callers 1

drawrect_contextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected