Author: Sunjay Varma Date: May 22, 2014
This is a demonstration of a method of generating parallel trails of points in JavaScript. They are called "trails" since this implementaion uses mouse movements to generate curves that "trail" behind the mouse.
- Supports minimum sampling distance between points
- Generate any number of parallel points
- See how the formula for the parallel points was derived: https://dl.dropboxusercontent.com/u/6086480/Deriving%20a%20Formula%20for%20Parallel%20Points.pdf
- To try it simply download the gist, unzip or unpack it if necessary and then double click on canvastrails.html (move your mouse around the page to see trails)
- main.js contains many different configuration options that can be used to play with the generated curves
There is a known bug where the trails cross over themselves from time to time. If you fix it, please fork and let me know.
You can reach me through my website http://www.sunjay.ca