Unleash the full potential of JavaScript and supercharge your web experiments with this library for experimental programming - based on jsPsych - work in progress! 🎯
This function serves the general functions displayStimuli and displayButtons #21 . It arranges all of the stimuli in a matrix.
Parameters
stimuli: an array of objects, including all necessary information for displaying, except for location.
centre: an array([x, y]), the centre position of the circle, the default value is the centre of the screen.
nRow: a number, the number of rows in the matrix
nCol: a number, the number of columns in the matrix
width: a number, the width of the matrix
height: a number, the height of the matrix
border: an object, an array of objects, or null. If it is an object, it draws a border for each object according to the properties we have set. If it is an array of objects, it draws a border for each object according to the properties we have set for each one.
Hi Chenyu, I have added a function for this to the dev branch. Currently, one can only specify the number of columns since the other dimension is determined by the number of frames.
Hi Ajit,
This function serves the general functions
displayStimuli
anddisplayButtons
#21 . It arranges all of the stimuli in a matrix.Parameters
Details of the parameters and output can be found in the issue https://github.com/coglabuzh/online-exps/issues/22