To use 'fuction draw ()' and GetPlayer

Jan 22, 2019

Hello!

I want to use the 'draw' function, but I don't know, where to put GetPlayer method. And can I do it at all? 

E.g. function:

function draw() {
var canvas = document.getElementById('canvas');
if (canvas.getContext) {
var ctx = canvas.getContext('2d');

ctx.fillRect(25,25,100,100);
ctx.clearRect(45,45,60,60);
ctx.strokeRect(50,50,50,50);
}

Sorry, if the question is too simple, but it's really hard to find an answer.

4 Replies
Leslie McKerchie

Hello Lada and welcome to E-Learning Heroes :)

We have some functionality built-into the software to allow drawing slides from question banks.

If you were looking for some information on where to place your JavaScript triggers, check out our documentation here.

Hopefully, that will help get you started, and we have some very savvy users here in the community, so I'm sure someone will be able to chime in and help you out with your design.

This discussion is closed. You can start a new discussion or contact Articulate Support.