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

Clipping? #12

Open
bourgesl opened this issue Jan 20, 2024 · 2 comments
Open

Clipping? #12

bourgesl opened this issue Jan 20, 2024 · 2 comments

Comments

@bourgesl
Copy link

If needed I implemented my own clipping algorithm (3 variants) in the marlin renderer that supports any closed polygon or stroked/dashed path...

It works as a stream processor and blazing fast.

If needed I could port it to python or C...

@bourgesl
Copy link
Author

Here is the filled shape case (polygon):
https://github.com/bourgesl/marlin-renderer/blob/5b1cbb57c39082cc444807daec401dd033754af7/src/main/java/sun/java2d/marlin/TransformingPathConsumer2D.java#L513

@skybber
Copy link
Owner

skybber commented Jan 20, 2024

Thanks!

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