Lines Matching refs:x
132 def hilbert_(x, y, a_x, a_y, b_x, b_y): argument
143 yield (x,y)
144 x, y = x+a_dx, y+a_dy
150 yield (x,y)
151 x, y = x+b_dx, y+b_dy
165 yield from hilbert_(x, y, a_x_, a_y_, b_x, b_y)
166 yield from hilbert_(x+a_x_, y+a_y_, a_x-a_x_, a_y-a_y_, b_x, b_y)
173 yield from hilbert_(x, y, b_x_, b_y_, a_x_, a_y_)
174 yield from hilbert_(x+b_x_, y+b_y_, a_x, a_y, b_x-b_x_, b_y-b_y_)
176 x+(a_x-a_dx)+(b_x_-b_dx), y+(a_y-a_dy)+(b_y_-b_dy),
198 x = int(b[1::2], 2) if b[1::2] else 0
200 if x < width and y < height:
201 curve.append((x, y))
424 for x in range(width*height):
426 start = m.floor(x * (size*count)/(width*height))
427 stop = m.ceil((x+1) * (size*count)/(width*height))
468 for (x,y), b in zip(
471 grid[x + y*self.width] = b
474 for (x,y), b in zip(
477 grid[x + y*self.width] = b
504 for x in range(0, self.width, 2):
508 b = grid[x+(2-1-(i%2)) + ((row*4)+(4-1-(i//2)))*self.width]
528 for x in range(self.width):
532 b = grid[x + ((row*2)+(2-1-i))*self.width]
551 for x in range(self.width):
552 line.append(grid[x + row*self.width].draw(
897 type=lambda x: tuple(
898 int(x, 0) if x.strip() else None
899 for x in x.split(',')),
903 type=lambda x: tuple(
904 int(x, 0) if x.strip() else None
905 for x in x.split(',')),
909 type=lambda x: int(x, 0),
913 type=lambda x: int(x, 0),
917 type=lambda x: int(x, 0),
949 type=lambda x: [x.strip() for x in x.split(',')],
953 type=lambda x: [x.strip() for x in x.split(',')],
958 type=lambda x: int(x, 0),
965 type=lambda x: int(x, 0),
971 type=lambda x: int(x, 0),
989 type=lambda x: int(x, 0),