Mikko Mononen

Results 172 comments of Mikko Mononen

You're correct, would you mind making a PR for fix that?

This is unfortunately due to the antialiasing algorithm used by nanovg. An alternative is to use MSAA, one of the examples shows how to set that up.

Your fix is not correct. The check is there to see if the path is already tessellated (can happen e.g. calling fill multiple times). On Tue, Mar 12, 2024 at...

I think the problem is that the end cap is aligned to the tessellated line, not the tangent of the curve. I've had to deal with this issue in other...

Thanks for the fix! 🎉

Currently the core supports only rectangular clipping path (aka. scissor). I have not found a good approach to make general anti-aliased clipping paths. I could all rounded rect and circle...

A lot of nitpicking about style, sorry about that. I've tried to favor quite compact and simple style, please follow the (loose) conventions from nanovg.c.

To keep things simple, I think the best way for the demo is to put it in one separate file, just like the fbo demo. I'll try to find time...

I all the points are created in mousedown, and moved/adjusted on mousemove. You can find the logic in there. Here's quick rundown of the tool mode: - create: create new...

take a look at calls to updateTail()