Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemumu committed Feb 2, 2023
1 parent ddcd989 commit 18f51bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Week 2 /Source/MainComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ void MainComponent::paint (juce::Graphics& g)
// for every x pixel in our window, hop in groups of 6
for (int x = 0; x < getWidth(); x += 6) {

// calculate a "phase" for this part of the size wave.
// calculate a "phase" for this part of the sine wave.
// For this example, the phase of the pixels will distribute 0 - 1
float phase = (float)x / (float)getWidth() + mGlobalPhase;
float phase = (float)x / (float)getWidth();

// we add the global phase to this value, this will create the speed
// and animated effect -- try removing this to see how it changes things.
Expand Down

0 comments on commit 18f51bc

Please sign in to comment.