Rado1 Cervenka

Results 9 comments of Rado1 Cervenka

At the global level in `app.module.ts` I have: ``` providers: [ { provide: LOCALE_ID, useValue: 'sk' }, { provide: MAT_DATE_LOCALE, useValue: 'sk' }, ], ``` This locale can be overridden...

Inverse gradient matrix more-or-less helped for linear gradients. However, using this code: ``` cpp NVGpaint createLinearGradient(NSVGgradient* gradient, float alpha) { float inverse[6]; float sx, sy, ex, ey; nvgTransformInverse(inverse, gradient->xform); nvgTransformPoint(&sx,...

Zipped SVG image is attached. [x.zip](https://github.com/memononen/nanosvg/files/538958/x.zip)

Mikko, BTW circular gradient works fine. Thanks! However, also here I can observe a problem with transforming positions far from origin of the picture. So also gradient radius works well...

After several other experiments with radial gradient I found that the problem is not distance from page origin, but distance from its diagonal. Above diagonal, rendered radius is smaller, below...

Sure, here is my current working version of the source file for ZgeNano library - a wrapper for NanoVG and NanoSVG libraries used in ZGameEditor. Please have a look at...

Sure, radial gradients now work fine. Thanks. ``` cpp nvgTransformPoint(&ex, &ey, inverse, 1, 0); ``` does not help - it rotates linear gradient by 90 degrees. Does your SVG rendered...

Mikko, I tested the current rendering on several free and quite complex svg pictures (e.g. [this](https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/car.svg)) and rendering is fine. It's maybe problem of that particular image (x.svg) I used...

A new issue #75 has been created for linear gradients. > Blurring and masking would be awesome, but they complicate the rendering a lot, so no plans to do that...