One question on "nsvgxformInverse(shape->fill.gradient->xform, t);" for gradient paints in nsvgscaleToViewbox function. I wonder why do we need to do inverse in the "scale" function? Is there any math formula to reference? Thank you!
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 "nsvgxformInverse(shape->fill.gradient->xform, t);" for gradient paints in nsvgscaleToViewbox function. I wonder why do we need to do inverse in the "scale" function? Is there any math formula to reference? Thank you!