Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix bug when using Text with the opengl renderer. (#1729)

Laith Bahodi934f133f2b85
diff --git a/manim/mobject/opengl_mobject.py b/manim/mobject/opengl_mobject.py
index 604db4390..0a88cc058 100644
--- a/manim/mobject/opengl_mobject.py
+++ b/manim/mobject/opengl_mobject.py
@@ -6,6 +6,7 @@ from functools import wraps
import moderngl
import numpy as np
+from colour import Color
from .. import config
from ..constants import *
@@ -59,7 +60,7 @@ class OpenGLMobject:
**kwargs,
):
- self.color = color
+ self.color = Color(color)
self.opacity = opacity
self.dim = dim # TODO, get rid of this
# Lighting parameters