mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Reimplented svg rendering using cairo, and changed vmobject color model to allow for gradeints and strokes with opacities. Many errors associated with python 2 to python 3 conversion are likely still present at this point.
This commit is contained in:
@ -72,7 +72,7 @@ def tuplify(obj):
|
||||
return (obj,)
|
||||
try:
|
||||
return tuple(obj)
|
||||
except:
|
||||
except TypeError:
|
||||
return (obj,)
|
||||
|
||||
|
||||
@ -90,8 +90,8 @@ def make_even(iterable_1, iterable_2):
|
||||
list_1, list_2 = list(iterable_1), list(iterable_2)
|
||||
length = max(len(list_1), len(list_2))
|
||||
return (
|
||||
[list_1[(n * len(list_1)) / length] for n in range(length)],
|
||||
[list_2[(n * len(list_2)) / length] for n in range(length)]
|
||||
[list_1[(n * len(list_1)) // length] for n in range(length)],
|
||||
[list_2[(n * len(list_2)) // length] for n in range(length)]
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user