mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Fixed a problem where in zooming in, stroke widths all grew
This commit is contained in:
parent
66075aa5d2
commit
5aa11cf8ad
1 changed files with 4 additions and 1 deletions
|
@ -392,7 +392,10 @@ class Camera(object):
|
|||
vmobject
|
||||
)
|
||||
ctx.set_line_width(
|
||||
width * self.cairo_line_width_multiple
|
||||
width * self.cairo_line_width_multiple *
|
||||
# This ensures lines have constant width
|
||||
# as you zoom in on them.
|
||||
(self.get_frame_width() / FRAME_WIDTH)
|
||||
)
|
||||
ctx.stroke_preserve()
|
||||
return self
|
||||
|
|
Loading…
Add table
Reference in a new issue