More radial gradient experimenting

This commit is contained in:
Robin Dunn
2019-07-28 20:23:55 -07:00
parent 94b98f968e
commit b9e804bdd4
2 changed files with 1470 additions and 1387 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -566,10 +566,10 @@ cdef class SVGgradient:
cdef float cx, cy, radius
cdef float r1, r2
nsvg__xformInverse(inverse, self._ptr.xform)
nsvg__xformPoint(&cx, &cy, 0, 0, inverse)
nsvg__xformPoint(&r1, &r2, 0, 1, inverse)
radius = r2 - r1
#radius = r2 - r1
radius = r2 - cy
return ((cx, cy), radius)