Skip to content

Commit

Permalink
index: Update camera position for y flip
Browse files Browse the repository at this point in the history
  • Loading branch information
AstraLuma committed Jul 10, 2019
1 parent e5c0134 commit b6c85ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ppb_mutant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def __init__(self, *p, morph='hmn', tone=None, **kw):

self.main_camera.position = ppb.Vector(
0,
self.main_camera.half_height - 2,
-self.main_camera.half_height + 2,
)

for s in self._get_samples():
Expand Down Expand Up @@ -220,9 +220,7 @@ def _grid(self):
cam = self.main_camera

for y in _frange(-1, -int(cam.frame_height - 2) + 0.5, -1.0):
print(y)
for x in _frange(int(cam.frame_left) + 0.5, int(cam.frame_right) - 0.5, 1.0):
print(x, y)
yield x, y

def _get_tones(self):
Expand Down

0 comments on commit b6c85ac

Please sign in to comment.