-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use Path rather than Rect #31
Comments
This is unlikely to be achievable, as paths aren't feasible to be passed over to a Skia shader. If anyone has any ideas on how to achieve this, let me know. We probably probably could achieve on Android this (via |
Is it achievable to use Rect + Shape? |
Since I have customed shapes which can't be approximated by RoundRect |
We'd have to manually write support into the shader to support various shapes, and then include a function to determine whether a pixel is in that shape (usually copied from here). It's not impossible, but very cumbersome. What shape are you trying to support here? |
the "cut corner" shape |
I only use Compose for Android, but this library is multiplatform. I think it is hard to achieve this, or are you able to provide some Android specific API? |
Released in 0.4.0 |
It will be more customizable to achieve blur effect with irregular shapes.
The text was updated successfully, but these errors were encountered: