[Javascript] Can't manage to display a canvas
in OSWeb
Following one of the exemple from the documentation:
var myCanvas = Canvas();
myCanvas.circle({x: 50, y: 50, r: 100, fill: true, color:'red'});
myCanvas.show();
This code greets me with a white screen instead of a red circle. Am I missing something?
Using latest firefox with Opensesame 3.3.11
Comments
Hi @JoeClaudus,
I don't typically use the canvas function in Javascript but the line you mentioned work just fine in my test task:
See if you can run this example.
Best,
Fabrice.