Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up3D particle effects gradient color multiplication. #2242
Closed
Conversation
| } | ||
|
|
||
| public void multiplyColors (Color color) { | ||
| for (int i = 0; i < colors.length; i++) { |
This comment has been minimized.
This comment has been minimized.
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] = ...
|
Closing this out, lordjone wants to talk to you :) |
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
przemyslawlis commentedAug 18, 2014
Can be handy for 3D particles dynamic color modifications.