Skip to content

Instantly share code, notes, and snippets.

@supahfunk
Created October 17, 2019 08:43
Show Gist options
  • Save supahfunk/20ee15f0d16538473968723fd8ed8f06 to your computer and use it in GitHub Desktop.
Save supahfunk/20ee15f0d16538473968723fd8ed8f06 to your computer and use it in GitHub Desktop.
const scale = (a, b, c, d, e) => {
return (a - b) * (e - d) / (c - b) + d
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment