Experiment(){
Context(){
AssignmentGroup(){
SubjectCode = "pxlab";
ExperimentName = "SVG Picture Selection";
TrialFactor = 4;
}
Session(){
Instruction(){
Text = ["SVG Picture Selection", " ", "Use the mouse to select an image and use the Space bar to indicate that your selection is final.", " ", "Press any key to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Trial(){
PictureMatrix(){
Timer = de.pxlab.pxl.TimerCodes.MOUSE_TRACKING_RELEASE_KEY_TIMER;
Directory = "@./images/svg";
FileName = ["pxlab_01.svg", "pxlab_02.svg", "pxlab_03.svg", "pxlab_04.svg"];
FileNameSelected = ["pxlab_01s.svg", "pxlab_02s.svg", "pxlab_03s.svg", "pxlab_04s.svg"];
NumberOfColumns = 2;
Width = 240;
Height = 180;
HorizontalGap = 10;
LocationX = -Trial.PictureMatrix.NumberOfColumns*Trial.PictureMatrix.Width/2-(Trial.PictureMatrix.NumberOfColumns-1)*Trial.PictureMatrix.HorizontalGap/2;
LocationY = -Trial.PictureMatrix.Height;
}
Feedback(){
Text = "Selected image: %Trial.PictureMatrix.Selection%";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 2000;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial();
}
}
}
}