mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Bug fix to camera_center
This commit is contained in:
parent
b1334dd72f
commit
585a4ff864
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ class Camera(object):
|
|||
ctx.set_matrix(cairo.Matrix(
|
||||
fdiv(pw, fw), 0,
|
||||
0, -fdiv(ph, fh),
|
||||
(pw / 2) + fc[0] * fdiv(pw, fw),
|
||||
(pw / 2) - fc[0] * fdiv(pw, fw),
|
||||
(ph / 2) + fc[1] * fdiv(ph, fh),
|
||||
))
|
||||
self.cache_cairo_context(pixel_array, ctx)
|
||||
|
|
Loading…
Add table
Reference in a new issue