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

Anti-aliasing / smoothing #2

Open
luigifab opened this issue Jan 22, 2022 · 2 comments
Open

Anti-aliasing / smoothing #2

luigifab opened this issue Jan 22, 2022 · 2 comments
Assignees

Comments

@luigifab
Copy link
Contributor

Here are an example of the current result:
image

It is possible to create beautiful lines like this ones?
image

@raalkml
Copy link
Owner

raalkml commented Jan 22, 2022

Probably. The library I'm using, libgd, seems to support anti-aliased lines. It's not all there is to it: one still have to figure out how to connect the ends of lines and have them anti-aliased as well (round ends?).
Any suggestions welcome!

@raalkml raalkml self-assigned this Jan 22, 2022
@raalkml raalkml pinned this issue Jan 22, 2022
@raalkml
Copy link
Owner

raalkml commented Jan 22, 2022

This turned out not easy at all. The extremely simplistic code I currently use is absolutely not up to the task :-( as is libgd, which draws just horrible antialiased lines. Either I'm doing something very wrong, or its code is too, not really up to the task.
Currently considering using Cairo (a very powerful graphics library) or just bite the bullet and write the line rendering code myself.

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

2 participants