Skip to content

Commit

Permalink
shorten initialization of R, G, and B
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBearodactyl authored Apr 28, 2024
1 parent d591a02 commit b8b4b5d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/trail_customization/rainbow_trail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ void RainbowTrail::hsv_to_rgb(float &fR, float &fG, float &fB, float &fH, float
float RainbowTrail::g = 0;

cocos2d::_ccColor3B RainbowTrail::get_rainbow(float offset, float saturation) {
float R;
float G;
float B;
float R, G, B;

float hue = fmod(g + offset, 360);
float sat = saturation / 100.0;
Expand Down

0 comments on commit b8b4b5d

Please sign in to comment.