-
Notifications
You must be signed in to change notification settings - Fork 304
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 colors with an alpha value #59
Comments
Hmm, interesting. Technically you can use color integers for Konfetti but the system is currently manipulating the alpha level in I assume you have different colors of which some have different alpha values. This is an interesting use case that I didn't think of when making this. I can either:
The latter works for most use cases but requires some work. Let me know if you have any ideas |
I was thinking maybe you could leave the alpha value of the color and instead of changing the alpha on each particle, could you manipulate the alpha value of the KonfettiView for the fadeOut? |
Unfortunately the fade out has to happen for each particle individually since they each have a different lifespan and moment to disappear. |
Ah okay. Then yeah, the second option would probably work (using the alpha value of the color). |
This does not solve the original issue... but in case it helps someone else, I used an alpha modifier on the KonfettiView itself in Compose to get all particles to appear with less intensity. |
I can't seem to use any colors with transparency, how would I go about doing this?
Thanks!
The text was updated successfully, but these errors were encountered: