Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primitives support #21

Open
11 tasks done
AnonMiraj opened this issue May 30, 2024 · 1 comment
Open
11 tasks done

Primitives support #21

AnonMiraj opened this issue May 30, 2024 · 1 comment

Comments

@AnonMiraj
Copy link
Owner

AnonMiraj commented May 30, 2024

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
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant