From 5aa11cf8adec5d68d657e25306dc7317980f3394 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 17 Jan 2019 14:09:50 -0800 Subject: [PATCH] Fixed a problem where in zooming in, stroke widths all grew --- manimlib/camera/camera.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manimlib/camera/camera.py b/manimlib/camera/camera.py index 96e7c58a..6741288a 100644 --- a/manimlib/camera/camera.py +++ b/manimlib/camera/camera.py @@ -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