The contrast level of the gabor patches generated using the canvas-keyboard-plugin does not change. #1425
Unanswered
prashantig25
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Hi @prashantig25, Can you explain what you are trying to do here: on_start: function(trial1){
trial1.contrast = Math.random(); trial1.contrast1 = jsPsych.currentTrial().contrast+ randbet(0.05,0.35);
}, It looks like you are assigning on_start: function(trial1){
trial1.contrast = Math.random()+ randbet(0.05,0.35);
}, Does that accomplish what you are looking for? I don't think this fully solves the issue, but I'm trying to better understand your intention before digging into the rest of the code. |
Beta Was this translation helpful? Give feedback.
2 replies
-
When you run on a Mac Desktop are you using Safari? Have you tried other browsers on the Mac Desktop? Do they all not work? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am drawing two Gabor patches on the canvas and presenting it using the canvas-keyboard-plugin.
I want to change the contrast level of the Gabor patches on every trial. I do that changing the contrast level using the on_start function. The contrast levels change when I run the code on a few devices but the contrast levels remain unchanged on a Macintosh desktop. Additionally, when I run the code on this desktop where the contrast levels are preset to a certain constant, the contrast levels still don't change.
Is there a particular cause for it or could it be related to the particular device? Any help is appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions