psychopy.org | Reference | Downloads | Github

Create a color wheel

Hi all,

I am trying to implement a color wheel as a response mode in an experiment (the participant has to select the perceived color by clicking on the wheel, and the difference between the “real” and the “selected” must be calculated).

What I have tried so far is to generate in Python a color wheel based on a color map every time the task starts which is saved in png format.
The program takes the values from there to also color the tested stimuli.
However, this solution is not perfect and I still find many drawbacks.
It would be great to know how to enhance this generated image as the edges are not smooth and in fact I suspect the included colors (RGB values) are not quite correct.
Is there any other alternative way to do it (some example or tutorial, to guide my steps better)?

I put my doubt here, as I suppose that I am not the only one who has used this type of answer and it could be useful for other users as well.

Thank you very much in advance!