You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One question on "nsvg__xformInverse(shape->fill.gradient->xform, t);" for gradient paints in nsvg__scaleToViewbox function. I wonder why do we need to do inverse in the "scale" function? Is there any math formula to reference? Thank you!
The text was updated successfully, but these errors were encountered:
The gradient transform is stored as inverse so that passing a point to it will return a point in gradient space. In retrospect sound wierd, but made sense at the time as I working on the rasterizer.
One question on "nsvg__xformInverse(shape->fill.gradient->xform, t);" for gradient paints in nsvg__scaleToViewbox function. I wonder why do we need to do inverse in the "scale" function? Is there any math formula to reference? Thank you!
The text was updated successfully, but these errors were encountered: