Mikko Mononen
Mikko Mononen
If you look the difference how `g` (group) and `rect` are handled in `nsvg__startElement()`, it should give you a hint. Groups can be nested, but rects cannot. That is, you...
NanoSVG does not support style tag, which defines the style as CSS cdata. This is not supported: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style
Updating to latest stb_image_writer is definitely a good thing. VC6 support is good. I don't have the possibility to test it, so some things might not work out of the...
There's no way to draw just points. You can draw circles or rectangles, but the performance will not be close to what you could get from GL_POINTS. Depending on your...
In vector graphics there's no such thing as a point. You probably would draw a circle or rectangle instead. There's an API to do that already. I think adding point...
Almost correct! :) ``` for (path = shape->paths; path != NULL; path = path->next) { nvgMoveTo(vg, path->pts[0], path->pts[1]); for (i = 0; i < path->npts-1; i += 3) { float*...
How about this? ``` for (shape = g_image->shapes; shape != NULL; shape = shape->next) { nvgStrokeWidth(vg, shape->strokeWidth); for (path = shape->paths; path != NULL; path = path->next) { nvgBeginPath(vg); nvgMoveTo(vg,...
the gradient transform is inverse transform, that is, if you multiply a world position with the matrix, you'll get a point in the gradient, where start is 0 and end...
Could you post the above svg here? The circular gradient is drawn so that the circle center is at (0,0), and the radius is 1 units. So, for a very...
I checked with nanosvg raserizer and it works fine. So things should be ok. Can you post the exact code whch you use to create the gradient?