Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

ThreeDMobject color fix

Grant Sandersone07fecc2f945
diff --git a/topics/three_dimensions.py b/topics/three_dimensions.py
index 55de29254..2d38cd55e 100644
--- a/topics/three_dimensions.py
+++ b/topics/three_dimensions.py
@@ -44,7 +44,7 @@ class ThreeDCamera(CameraWithPerspective):
if should_shade_in_3d(vmobject):
return self.get_shaded_rgb(rgb, self.get_unit_normal_vect(vmobject))
else:
- return color
+ return rgb
def get_stroke_rgb(self, vmobject):
return self.modified_rgb(vmobject, vmobject.get_stroke_rgb())