Skip to content
Discussion options

You must be logged in to vote

Hi @melisa-akan,

This sounds like a situation where timeline variables will work well.

You'll need to modify the drawCircS function to accept an additional argument for the susrad variable.

The third example listed here is almost exactly what you are trying to do: https://www.jspsych.org/7.1/plugins/canvas-button-response/#examples. The filledCirc function is similar to your drawCircS, but takes 3 arguments instead of 2. The list of trials is declared using the timeline_variables and the jsPsych.timelineVariable() function is used to get the right input for the function.

Feel free to follow up here if you need additional guidance!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@melisa-akan
Comment options

Answer selected by melisa-akan
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