I used the $W.data command in the chrome console, and I was able to get data at that time of the intensity of the wavelengths, I would like to be able to get constantly updating information, and export it to an arduino sketch, is there a command for that?
and it'll run each time a sample is collected -- many times per second. Exciting to see what you're doing! Please share some build photos if you can! :-)
So when I typed "$W.getCrossSection()" into the console I got:
TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'
at Object.getCrossSection (capture-2378d6dbb368cce52b64ccc75b38a3a4.js:1)
Did I do something wrong?
Also thank you! I see if I can make a little blog post with what I've done so far, or maybe once I finish.
Oh sorry, you have to redefine the function with a new one of your own, that can be a revision of the existing one, and it'll get called each frame. Make sense? I'm happy to review your code and offer tips.