Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Apr 13, 2024
1 parent 13cf942 commit 70f3691
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ private void wave(Color c1, Color c2, double cycleLength, double duration) {
}

private void stripes(List<Color> colors, int stripeLength, double duration) {
int offset = (int) (Timer.getFPGATimestamp() % duration / duration * stripeLength * colors.size());
int offset =
(int) (Timer.getFPGATimestamp() % duration / duration * stripeLength * colors.size());
for (int i = 0; i < length; i++) {
int colorIndex =
(int) (Math.floor((double) (i - offset) / stripeLength) + colors.size()) % colors.size();
Expand Down

0 comments on commit 70f3691

Please sign in to comment.