Experiment(){
Context(){
AssignmentGroup(){
RandomizeTrials = 1;
SubjectCode = "pxlab";
ExperimentName = "SVG Picture Show";
new size = screenHeight()-80;
new dir = "@./images/svg";
}
Session(){
Instruction(){
Text = ["Show Some SVG Pictures", " ", "Picture files are preloaded and rendered into an image cache first.", " ", "Press any key to start!"];
JustInTime = 1;
}
Message(){
Text = "Loading Picture Cache ...";
Timer = de.pxlab.pxl.TimerCodes.NO_TIMER;
JustInTime = 1;
}
PictureCache(){
Directory = dir;
Width = size;
Height = size;
FileName = ["tiger.svg", "lion.svg", "anne.svg", "batikBatik.svg", "sunRise.svg"];
JustInTime = 1;
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Trial( TrialCounter, Picture.FileName){
FixationMark(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
Picture(){
Duration = 2000;
Timer = de.pxlab.pxl.TimerCodes.LIMITED_RESPONSE_TIMER;
Directory = dir;
Width = size;
Height = size;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( ?, "tiger.svg");
Trial( ?, "lion.svg");
Trial( ?, "anne.svg");
Trial( ?, "batikBatik.svg");
Trial( ?, "sunRise.svg");
}
}
}
}