Adventure time, SVG edition
-
I gave up. I was implementing Wu algorithms for anti-aliased draws in my graphics library, but I kept running into problems with it due to also supporting alpha blending. Basically the problem is that you cannot draw a pixel in the same place twice, ever or if alpha blended it will blend with itself, halving the transparency. Most of the algorithms don't account for that, and the ones that I've found that do work in narrow cases, like circles only, or filled ellipses but not regular ellipses. I'm over it. I have an SVG rasterizer in C I'm already using to support SVG in my library. *cracks knuckles* I'm adding a bunch of builder methods like
add_ellipse<>()
so you can basically use svg_docs for advanced drawing operations without needing to go through XML to get there. It's not easy, and I'm not sure how practical it will be in the end, but I hope it works, because that unsticks me. I've been waiting to write a full featured UI control suite for my UI/UX library until I had anti-aliased draws in my graphics library because I didn't want to have to rewrite all the drawing code later. So if this works it will unblock me in a major way.Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
I gave up. I was implementing Wu algorithms for anti-aliased draws in my graphics library, but I kept running into problems with it due to also supporting alpha blending. Basically the problem is that you cannot draw a pixel in the same place twice, ever or if alpha blended it will blend with itself, halving the transparency. Most of the algorithms don't account for that, and the ones that I've found that do work in narrow cases, like circles only, or filled ellipses but not regular ellipses. I'm over it. I have an SVG rasterizer in C I'm already using to support SVG in my library. *cracks knuckles* I'm adding a bunch of builder methods like
add_ellipse<>()
so you can basically use svg_docs for advanced drawing operations without needing to go through XML to get there. It's not easy, and I'm not sure how practical it will be in the end, but I hope it works, because that unsticks me. I've been waiting to write a full featured UI control suite for my UI/UX library until I had anti-aliased draws in my graphics library because I didn't want to have to rewrite all the drawing code later. So if this works it will unblock me in a major way.Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix