'CalibrateTemplate' by cfastie

Report abuse

Created on March 07, 2013 17:45 | Updated about 8 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
draw: function() {
  // code to run every frame