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

Fix/double color #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KristofferHermansen
Copy link

@KristofferHermansen KristofferHermansen commented Apr 5, 2024

Goal

Fixing a problem where colors were applied twice, making it slightly off from the expected color.
As the UIImages are already colored by the UIImage.colored function, there is no need to also apply the same color to the CAEmitterCell. Doing this applies the same color twice.

This removes the color from the emitter cell, although another solution could be painting the UIImage white and applying the correct color to the CAEmitterCell.

Screenshot

Before and After screenshots of this change. As shown the pastel colors are slightly darker on the confetti than the colors shown in the view. They use the exact same color, but because of the double appliance, they turn out darker.

Checklist

  • Testing in compability platforms
  • Installed correct via Swift Package Manager and Cocoapods

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

Successfully merging this pull request may close these issues.

None yet

2 participants