Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = "Color Selection in CIELab Space";
SubjectCode = "pxlab";
CIEWhitePoint = fromYxy([80, 0.3127, 0.3291]);
}
Session(){
Instruction(){
Text = ["Color Selection in CIELab Space", " ", "We show a plane of constant lightness from CIELab space. You may select or deselect a color by pressing the mouse button on a color patch. The selected color is shown in a separate patch.", "Finish selection by pressing the SPACE bar.", "The Cursor keys move the viewing window in the CIELab plane and the Page up/down keys change the lightness level.", " ", "Press any key now to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Trial( CIELabColorSampleSelection.SelectionCenterColor, CIELabColorSampleSelection.Selection, CIELabColorSampleSelection.SelectionIndex){
CIELabColorSampleSelection(){
SelectionCenterColor = fromCIELab([50, 0, 0]);
SelectionChromaStep = 5;
NumberOfSelectionColumns = 11;
NumberOfSelectionRows = 11;
SelectionPatchWidth = 24;
SelectionPatchHeight = 24;
SelectionLocationX = -300;
SelectionLocationY = 0;
SelectionGapSize = 4;
Selection = "";
SingleSelection = 1;
DiskSize = 200;
DiskLocationX = 300;
Timer = de.pxlab.pxl.TimerCodes.MOUSE_TRACKING_STOP_KEY_TIMER;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( fromCIELab([70, 0, 0]), ?, ?);
Trial( fromCIELab([50, 0, 0]), ?, ?);
Trial( fromCIELab([30, 0, 0]), ?, ?);
}
}
}
}