mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Small fix
This commit is contained in:
parent
7b198545bb
commit
f4a33c5bfb
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ def color_to_rgba(color, alpha=1):
|
||||||
def rgb_to_color(rgb):
|
def rgb_to_color(rgb):
|
||||||
try:
|
try:
|
||||||
return Color(rgb=rgb)
|
return Color(rgb=rgb)
|
||||||
except:
|
except ValueError:
|
||||||
return Color(WHITE)
|
return Color(WHITE)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue