Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] color wheel in psychopy

edited April 2013 in OpenSesame

Hi,

I got a question concerning psychopy. I programmed a color wheel that consists of 360 colors (defined in RGB values).
When I run the script in legacy mode the wheel looks perfect. However, I would like to run the experiment with the psychopy legacy. In psychopy the wheel consists of 3 dull colors. Do you have any idea what might cause this problem?

Comments

  • edited 7:14PM

    Never mind, if I change the RGB values to Hex values it works.

  • edited 7:14PM

    Hi,

    For future reference: your problem probably occurred with self coded RGB-guns between 0 and 255, right? PsychoPy uses RGB guns with values between -1 and 1. So PyGame (255,0,0) would be PsychoPy (1,-1,-1), as PyGame (128,128,128) would be PsychoPy (0,0,0).

    Using hex values is a good solution, since your bypassing the gun value difference.

  • edited 7:14PM

    Hi Dirk,

    The issue is as Edwin says. However, OpenSesame would ideally handle this color conversion for you, so you can switch from one back-end to another without having to worry about the correct color notation. Would you mind sharing your code so that I can take a look at where this goes wrong?

    Cheers,
    Sebastiaan

  • edited 7:14PM

    Hi dirk.
    I'm an undergraduate student.

    I also wanted to view your color-wheel codes using PsychoPy. Actually, I am trynna make continuous-wheel based experiment but have no idea with how can I calculate the response error in each trial with random condition.

    Can you share your code so that novices can study with it?

    Regards,
    Hio-Been

  • edited 7:14PM

    hi,
    could you please share you "color-wheel" code.
    it will save me time ;)

Sign In or Register to comment.