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

Rounded corners? #21

Open
s0ulslack opened this issue Feb 21, 2024 · 2 comments
Open

Rounded corners? #21

s0ulslack opened this issue Feb 21, 2024 · 2 comments

Comments

@s0ulslack
Copy link

Any chance you've played with rounded corners and would be interested in adding it?

Thanks for the plugin!

@timgott
Copy link
Owner

timgott commented Feb 21, 2024

Soreau made https://github.com/soreau/pixdecor that supports rounded corners with shadows. Its shadows look a bit different though.

I am not planning to add this right now, but for reference: The website that provided the source for core of the gaussian shadow also has a version for rounded rectangles. https://madebyevan.com/shaders/fast-rounded-rectangle-shadows/

However I derived the glow shader directly with a CAS integral solver, it would require a bit more thinking to make it work with rounded corners.

@timgott
Copy link
Owner

timgott commented May 31, 2024

I have a formula for arcs too now, so it would be possible to implement rounded corners for glow too.

https://timgott.github.io/neon/

If I feel like working on this again some day I might add it.

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