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

gl_engine: incorrect stroke trimming #3053

Open
hermet opened this issue Dec 14, 2024 · 1 comment
Open

gl_engine: incorrect stroke trimming #3053

hermet opened this issue Dec 14, 2024 · 1 comment
Labels
enhancement Improve features raster Rasterizers (sw/gl/wg)
Milestone

Comments

@hermet
Copy link
Member

hermet commented Dec 14, 2024

        auto shape1 = tvg::Shape::gen();
        shape1->appendCircle(245, 225, 50, 120);
        shape1->appendCircle(245, 565, 50, 120);
        shape1->fill(0, 50, 155, 100);
        shape1->strokeFill(0, 0, 255);
        shape1->strokeJoin(tvg::StrokeJoin::Round);
        shape1->strokeCap(tvg::StrokeCap::Round);
        shape1->strokeWidth(12);
        shape1->strokeTrim(0.5f, 0.75f, false);

        canvas->push(std::move(shape1));

sw:
image

gl:
image

@hermet hermet added enhancement Improve features raster Rasterizers (sw/gl/wg) labels Dec 14, 2024
@hermet hermet added this to the 1.0 milestone Dec 14, 2024
@hermet hermet added this to ThorVG Dec 14, 2024
@hermet
Copy link
Member Author

hermet commented Dec 14, 2024

+ @RuiwenTang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve features raster Rasterizers (sw/gl/wg)
Projects
Status: No status
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy