mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
More radial gradient experimenting
This commit is contained in:
2853
wx/svg/_nanosvg.c
2853
wx/svg/_nanosvg.c
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user