Lines Matching refs:tx
469 static void nsvg__xformSetTranslation(float* t, float tx, float ty)
473 t[4] = tx; t[5] = ty;
2775 static void nsvg__scaleGradient(NSVGgradient* grad, float tx, float ty, float sx, float sy)
2778 nsvg__xformSetTranslation(t, tx, ty);
2789 float tx, ty, sx, sy, us, bounds[4], t[6], avgs;
2817 tx = -p->viewMinx;
2828 tx += nsvg__viewAlign(p->viewWidth*sx, p->image->width, p->alignX) / sx;
2833 tx += nsvg__viewAlign(p->viewWidth*sx, p->image->width, p->alignX) / sx;
2842 shape->bounds[0] = (shape->bounds[0] + tx) * sx;
2844 shape->bounds[2] = (shape->bounds[2] + tx) * sx;
2847 path->bounds[0] = (path->bounds[0] + tx) * sx;
2849 path->bounds[2] = (path->bounds[2] + tx) * sx;
2853 pt[0] = (pt[0] + tx) * sx;
2859 nsvg__scaleGradient(shape->fill.gradient, tx,ty, sx,sy);
2864 nsvg__scaleGradient(shape->stroke.gradient, tx,ty, sx,sy);