I'm new with AR Spark and I saw that you can write scripts. I'm trying to write a script in pure js and I get the error about "'canvas.getContext' undefined" on canvas.
Code snippet :
var sceneBase = Scene.root.child('Device').child('Camera').child('Focal Distance');
var canvas = sceneBase.child('canvas0');
var ctx = canvas.getContext('2d');
I have looked at the documentation but couldn't find anything about it. Probably AR Spark doesn't support it but I'm just wondering.