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

3D particle effects gradient color multiplication. #2242

Closed
wants to merge 7 commits into from

Conversation

@przemyslawlis
Copy link

przemyslawlis commented Aug 18, 2014

Can be handy for 3D particles dynamic color modifications.

}

public void multiplyColors (Color color) {
for (int i = 0; i < colors.length; i++) {

This comment has been minimized.

Copy link
@badlogic

badlogic Sep 7, 2014

Member

This is a pretty convoluted way of doing things :)

Would be faster with just

colors[0] = ...
colors[1] = ...
colors[2] = ...
@badlogic
Copy link
Member

badlogic commented Sep 7, 2014

Closing this out, lordjone wants to talk to you :)

@badlogic badlogic closed this Sep 7, 2014
@przemyslawlis
Copy link
Author

przemyslawlis commented Sep 7, 2014

This is of course true for simple changing of color value, but when we modify the color of the effect we might want sometimes to have information about original color values. E.g. we want to temporary tint the color values of the effect and later go back to original values. Also "colors" field array length is not always 3. Its length depends on the number of colors on timeline, so multiplyColors function might be handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.