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:
Grant Sanderson
2018-08-10 15:12:49 -07:00
parent 858051a806
commit 087715e538
7 changed files with 296 additions and 204 deletions

View File

@ -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)]
)