Something I've been trying to get my head around for a while, and I'm finally going to have to ask for some advice here...
I'm trying to create a paradigm in which observers 'bisect' two colours presented either side of the screen, by adjusting a central colour patch until it appears to be the exact mid-colour of the two either side. The specific problem is that any colours I generate have to be isoluminant, so that any decision is made on the basis of the chromatic information only.
The two difficulties I have to overcome are:
(1) Monitor calibration. If I calibrate the R, G and B channels of a monitor separately, does that guarantee that intermediate combinations (e.g. purples) will come out truly isoluminant?
(2) How to request an isoluminant palette from PsychToolbox. As I understand it, I should probably be using DKL colour space. The built-in PTB function DKLDemo produces a nice set of colours as a figure, which appear to be approximately isoluminant, so this is likely the palette I need. So far so good. The question is how do I tell PTB that I want to produce a colour in DKL space? Converting between RGB and DKL looks to be trivial in PsychoPy, but not so in PTB. I see that DKL colours are defined by specifying elevation, azimuth and radius (AKA contrast). As far as I can tell, if I fix elevation at 0° and radius at 0, then by adjusting the azimuth from 0 to 360, I should get a decent range of colours that I can use for my experimental paradigm. But, I can't get my head around the code in DKLDemo, and I haven't yet found anything explaining how this might be done in PTB. All I want to do is specify colours by adjusting the azimuth value in DKL colour space.