Lines Matching refs:_size
143 _size: int
176 self._size = version * 4 + 17
180 self._modules = [[False] * self._size for _ in range(self._size)] # Initially all light
181 self._isfunction = [[False] * self._size for _ in range(self._size)]
215 return self._size
229 return (0 <= x < self._size) and (0 <= y < self._size) and self._modules[y][x]
237 for i in range(self._size):
243 self._draw_finder_pattern(self._size - 4, 3)
244 self._draw_finder_pattern(3, self._size - 4)
282 self._set_function_module(self._size - 1 - i, 8, _get_bit(bits, i))
284 self._set_function_module(8, self._size - 15 + i, _get_bit(bits, i))
285 self._set_function_module(8, self._size - 8, True) # Always dark
304 a: int = self._size - 11 + i % 3
316 if (0 <= xx < self._size) and (0 <= yy < self._size):
383 for right in range(self._size - 1, 0, -2): # Index of right column in each column pair
386 for vert in range(self._size): # Vertical counter
390 y: int = (self._size - 1 - vert) if upward else vert # Actual y coordinate
408 for y in range(self._size):
409 for x in range(self._size):
417 size: int = self._size
489 result: List[int] = [(self._size - 7 - i * step) for i in range(numalign - 1)] + [6]
575 assert n <= self._size * 3
586 currentrunlength += self._size # Add light border to final run
593 currentrunlength += self._size # Add light border to initial run