Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = "Color Selection from Random Sample";
SubjectCode = "pxlab";
TrialFactor = 3;
}
Session(){
Instruction(){
Text = ["Color Selection", " ", "We show a sample of colors. 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.", " ", "Press any key now to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Trial( ColorSampleSelection.Selection, ColorSampleSelection.SelectionIndex){
ColorSampleSelection(){
ColorSample = [29.67, 0.381, 0.34, 29, 0.386, 0.403, 30.19, 0.371, 0.471, 29.15, 0.289, 0.416, 31.13, 0.26, 0.321, 29.9, 0.243, 0.258, 29.95, 0.291, 0.259, 31.44, 0.333, 0.276, 11.18, 0.567, 0.312, 58.78, 0.434, 0.471, 19.83, 0.253, 0.422, 19.83, 0.353, 0.422, 57.5, 0.373, 0.363, 11.76, 0.356, 0.448, 19.58, 0.31, 0.328, 75.78, 0.313, 0.327];
NumberOfSelectionColumns = 4;
NumberOfSelectionRows = 4;
SelectionPatchWidth = 48;
SelectionPatchHeight = 48;
SelectionLocationX = -200;
SelectionLocationY = 0;
SelectionGapSize = 12;
Selection = "";
SingleSelection = 1;
DiskSize = 200;
DiskLocationX = 200;
Timer = de.pxlab.pxl.TimerCodes.MOUSE_TRACKING_STOP_KEY_TIMER;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( ?, ?);
}
}
}
}