Open chenyu-psy opened 11 months ago
Dear Chenyu, I would propose creating a single arrange
function, where one can specify which layout (circle/line/matrix etc.) should be used and if the buttons are clickable (true/false), since they all share a lot of functionalities. If the buttons are clickable can be set individually per stimulus as well. Would you be fine with this?
Hi Ajit,
I separate them into several functions for two reasons:
So, I think it would still be a better idea to not combine them.
For your suggestion of having an argument to check whether the buttons are clickable or not, is it possible that some buttons are clickable and some are not? For example, I will display a picture and ask participants to click on the correct color from a color matrix. The image should not be clickable, but the color matrix can be.
Hi Chenyu,
that makes sense, I will make seperate functions then. Yes, one will be able to specify whether an element is clickable or not individually.
Another option could be to add a property for each object to determine whether they are clickable or not.
Dear Ajit,
Thank you for your work on the
circleOfSquares
function. I wonder if it is possible to develop it into a series of functions that are more flexible and general.My initial idea is that we could have two functions:
displayStimuli
anddisplayButtons
. The function of these two functions is quite similar. they transform input to HTML code, which we can use in thehtml-button-response
orhtml-key-response
plugins. The only difference is that the objects displayed withdisplayStimuli
cannot be clicked on, while the objects displayed withdisplayButtons
can.I don't know if you have a better solution. What I have done so far is using the
displayButtons
function in the argument ofbutton_html
, and using thedisplayStimuli
function in the argument ofstimulus
. It allows me to flexibly set which objects can be clicked on and which cannot.For the input of the functions, it should be an array that includes some objects. Each object includes the necessary information to display them on the screen. I will post other issues to describe the details about the input, but the eventual version should look like the "psychophysics" plugin.