Created on March 07, 2013 17:45 | Updated almost 7 years ago
Link: https://gist.github.com/Fastie/5109944
A template for linear calibration. Enter the spectrum id, the pixel distance to each peak (zero left), and the known wavelengths for the peaks. Wavelengths for two known peaks for CFL are entered.
setup: function() { // code to run on startup $W.calibrate(id,pixel#,405.4,pixel#,650) }, draw: function() { // code to run every frame }