Skip to content
Discussion options

You must be logged in to vote

Hi @GEJ1! Just to clarify: you're defining the filledCirc function in the plugin file, but your trial definition in the HTML references that function name, like this:

var circle_1 = {
    type: 'canvas-button-response-filledCirc',
    stimulus: function(c) {
        filledCirc(c, 100, 'blue'
    }
    // etc.
};

In this case I would expect that you'd get the "filledCirc is not defined" error because the functions contained in the plugin file are not accessible from the HTML file (even when called inside of a dynamic parameter). If your trials always need to use the filledCirc function, then you should just be able to use that function in the plugin file without calling it anywhere in the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GEJ1
Comment options

Answer selected by GEJ1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants