psychopy.org | Reference | Downloads | Github

Creating a 'Color Picker' using Coder/Builder

Hi,

I am an idiot trying to learn to code. I want to create an option in which participants can select a color among a gradient or continuum of two colors (blue and red). Attached is a picture.

Screen Shot 2020-03-16 at 9.14.06 PM|690x285

Hi @Youn, in the latest PsychoPy, the Coder contain a demo (see Demos > Stimuli) called “colorPalette.py”, which allows users to set the hsv values of a shape using sliders. With a few tweaks to the code, you could get this to only display colors blue to red.