AnonMiraj / fig

FIG (Fortran Intuitive Graphics)
MIT License
27 stars 2 forks source link

Primitives support #21

Closed AnonMiraj closed 1 month ago

AnonMiraj commented 4 months ago

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.

AnonMiraj commented 4 months 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.