[open] Spectrum image, from what participants can choose colors. It is possible?
Hello,
I need to design an experiment, in that participants could choose a color from a spectrum of colors image. I need something like in photoshop (when you choose what colour to use), and that the color of that region where is mouse pointer to be seen in a square on the bottom corner of the display, and that colour need to be registered after normal mouse click on the choosed color.
Is possible to do something like this in OpenSesame?
PS: Sorry if my description is not so clear... ![]()
Comments
Hi,
This would be a handy tool for research on synesthesia (for example), but currently such a tool does not exist. You might want to look at inline_scripting, especially the canvas functions: http://osdoc.cogsci.nl/python-inline-code/canvas-functions/
If you're not so great at Python, this might be a good opportunity to learn
Otherwise, it shouldn't be too difficult 
Good luck!
The easiest approach is probably to just use an image that is exactly the size of the display. That way you don't have to read the contents of the screen (which is hard), but can simply extract the contents from the image (which is easy). Perhaps this script will get you started. It reads an image called
my_image.jpgfrom the file pool and goes into 'photoshop mode' until you click a button.But this is definitely true! You will probably want to (at least) tweak this script, and this will require knowledge of Python. A good start:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!