Skip to content

Instantly share code, notes, and snippets.

@lmccart
Created July 31, 2013 00:40
Show Gist options
  • Save lmccart/6118358 to your computer and use it in GitHub Desktop.
Save lmccart/6118358 to your computer and use it in GitHub Desktop.
scales[i] = Math.pow(2 * Math.abs(balances[i] - .5), scalePower);
scales[i] = map(scales[i], 0, 1, minHeightScale, maxHeightScale);
totalScale += scales[i];
if(scales[i] > maxScale) {
maxScale = scales[i];
maxScaleIndex = i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment