Skip to content

Commit

Permalink
curve wave-first test of side amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
mayakraft committed Aug 15, 2016
1 parent fed1fb5 commit e7adb79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 04-lang-wave-curve/007-wave-sides-amp.c
Expand Up @@ -84,10 +84,10 @@ int main(int argc, char **argv){

// the end of the line, ease these two lines together
if(i >= ROUNDS ){
float otherX = width*.5 + SCALE * cos(a-TWOPI*.5 - nudgeScale*sin(a)) * (i + 2*a/TWOPI - sin(a*wobbleFreq)*wobbleMag*wobbleIncr ) + SCALE * pathGap * one;
float otherY = height*.5 + SCALE * sin(a-TWOPI*.5 - nudgeScale*sin(a)) * (i + 2*a/TWOPI - sin(a*wobbleFreq)*wobbleMag*wobbleIncr );
x = (x+otherX) * .5;
y = (y+otherY) * .5;
float otherX = width*.5 + SCALE * cos(a - nudgeScale*sin(a)) * (i + 2*a/TWOPI - sin(a*wobbleFreq)*wobbleMag*wobbleIncr ) + SCALE * pathGap * one;
float otherY = height*.5 + SCALE * sin(a - nudgeScale*sin(a)) * (i + 2*a/TWOPI - sin(a*wobbleFreq)*wobbleMag*wobbleIncr );
// x = (x+otherX) * .5;
// y = (y+otherY) * .5;
}

fprintf(file, "%.2f,%.2f ", x, y);
Expand Down

0 comments on commit e7adb79

Please sign in to comment.