Created
December 1, 2022 13:33
-
-
Save pomle/2b46a0ffb3469f5a3754328a316e2dca to your computer and use it in GitHub Desktop.
Math
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const maxArea = Math.PI * max ** 2; | |
const pointArea = (point.intensity / max) * maxArea; | |
const value = Math.sqrt(pointArea / Math.PI); | |
const size = 8 + (value / max) * 24; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment