def reset_seeds_frame(self): self.seeds_frame = [] for (sx,sy,c) in self.seeds: frame = [] for x in frange(sx*CH_WIDTH, (sx+1)*CH_WIDTH, 1.0): for y in frange(sy*CH_HEIGHT, (sy+1)*CH_HEIGHT, 1.0): frame.append((x, y, c)) self.seeds_frame.extend(frame)
def reset_seeds_frame(self): self.seeds_frame = [] for (sx, sy, c) in self.seeds: frame = [] for x in frange(sx * CH_WIDTH, (sx + 1) * CH_WIDTH, 1.0): for y in frange(sy * CH_HEIGHT, (sy + 1) * CH_HEIGHT, 1.0): frame.append((x, y, c)) self.seeds_frame.extend(frame)
def frame(self): frame = [] for x in frange(self.x*CH_WIDTH, (self.x+1)*CH_WIDTH, 1.0): for y in frange(self.y*CH_HEIGHT, (self.y+1)*CH_HEIGHT, 1.0): frame.append((x, y, self.color)) return frame