Skip to content

Commit

Permalink
Merge branch 'master' into orbit
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 8, 2023
2 parents 996660b + 0129e76 commit 64dfa56
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions VortexEngine/src/Patterns/Multi/HueShiftPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,12 @@ void HueShiftPattern::play()
// because it will never reach the target hue and
// always over/under shoot
// only increment every blendDelay times
int timetest = ((Time::getCurtime() - 1) % m_blendDelay);
++m_delayCounter;
if (m_delayCounter >= m_blendDelay) {
m_delayCounter = 0;
m_cur.hue += sign;
}
HSVColor showColor;
showColor.hue = m_cur.hue;
showColor.sat = 255;
showColor.val = 255;
HSVColor showColor = HSVColor(m_cur.hue, 255, 255);
// set the target led with the current HSV color
for (LedPos pos = LED_FIRST; pos < LED_COUNT; ++pos) {
Leds::setIndex(pos, hsv_to_rgb_generic(showColor));
Expand Down

0 comments on commit 64dfa56

Please sign in to comment.