mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Fixed typo
This commit is contained in:
parent
f93679fa47
commit
4c1934fe4f
1 changed files with 2 additions and 2 deletions
|
@ -394,7 +394,7 @@ class Camera(object):
|
||||||
y0 = max(y0, 0)
|
y0 = max(y0, 0)
|
||||||
image[y0:y1, x0:x1] = stretched_impa[siy0:siy1, six0:six1]
|
image[y0:y1, x0:x1] = stretched_impa[siy0:siy1, six0:six1]
|
||||||
else:
|
else:
|
||||||
# Alternate (slower) tactice if image is tilted
|
# Alternate (slower) tactic if image is tilted
|
||||||
# List of all coordinates of pixels, given as (x, y),
|
# List of all coordinates of pixels, given as (x, y),
|
||||||
# which matches the return type of points_to_pixel_coords,
|
# which matches the return type of points_to_pixel_coords,
|
||||||
# even though np.array indexing naturally happens as (y, x)
|
# even though np.array indexing naturally happens as (y, x)
|
||||||
|
@ -618,7 +618,7 @@ class MovingCamera(Camera):
|
||||||
|
|
||||||
def capture_mobjects(self, *args, **kwargs):
|
def capture_mobjects(self, *args, **kwargs):
|
||||||
self.space_center = self.mobject.get_center()
|
self.space_center = self.mobject.get_center()
|
||||||
self.realign_space_shape()
|
self.realign_space_shape()
|
||||||
Camera.capture_mobjects(self, *args, **kwargs)
|
Camera.capture_mobjects(self, *args, **kwargs)
|
||||||
|
|
||||||
def realign_space_shape(self):
|
def realign_space_shape(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue