Closed AnonMiraj closed 1 month ago
I initially intended to support stroke_size from the beginning, but I have been struggling to find a suitable approach for drawing thick lines. I have tried using a polygon and an edited version of Bresenham's algorithm, but the lines look different from their SVG counterpart.
I still need to research more on how SVG renders thick lines.
Here is a list of the primitives that I plan to support. Items marked with "?" are aspects I am still unsure how to implement:
All primitives should support attributes like stroke size, stroke color, and fill color. Anti-aliasing should be enabled by default.