Skip to content

Commit

Permalink
fix: update linear interpolation formula to return correct chaos level
Browse files Browse the repository at this point in the history
  • Loading branch information
J.C. Hiatt committed May 28, 2019
1 parent 7da0b3b commit d968dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/createChaos.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function convertChaosLevel(level) {
if ( level === 10 ) {
level = .95;
} else {
level = (level/100).toFixed(2);
level = (level / 10).toFixed(2);
}

return interpolate(1, 0, level)
Expand Down

0 comments on commit d968dc6

Please sign in to comment.