Change From Distance.

A script which makes applying a function based on distance from a pointer event really easy. For the demo I modified the color CSS property, but you can do anything with the inputted function, or even just the returned distance. Check it out on GitHub!