\r
///+ Stimulus drawing function\r
//// A function for stimulus drawing (main body)\r
+\r
+\r
+void psychlops_main() {\r
+ Canvas cnvs(Canvas::window);\r
+\r
+ Letters let(L"flower_png24.png");\r
+ let.fill = Color::white;\r
+\r
+ Psychlops::Ellipse rect(100,100);\r
+ rect.fill = Color::red;\r
+\r
+ Devices::GenericParallelPort trigger("USB_PARALLEL", 1+8);\r
+\r
+ int t=0;\r
+\r
+ while(!Keyboard::esc.pushed()) {\r
+ t++;\r
+ Display::clear(); //Clear window\r
+\r
+ //if(t%100 == 0)\r
+ // rs = CreateProcess("C:\\Windows\\System32\\print.exe",(LPTSTR)" /D:LPT1 D:\\Users\\hskwk\\Desktop\\zzz.txt",NULL,NULL,FALSE,NORMAL_PRIORITY_CLASS,NULL,NULL,&si,&pi);\r
+\r
+ if(t%120==0) trigger.trigger();\r
+ rect.draw();\r
+\r
+ Display::flip(); // Flip frame buffers\r
+ }\r
+}\r
+///- Stimulus drawing function\r
+\r
+\r
+\r
+#if 0\r
+\r
+// Motion with glass patterns.\r
+// Ross, J., Badcock, D. R., and Hayes, A. (2000)\r
+// Coherent global motion in the absence of coherent velocity signals.\r
+// Current Biology, 10, 679-682.\r
+///+ Prefix\r
+//// Include Psychlops Package\r
+#include <psychlops.h>\r
+using namespace Psychlops; // Initially developed with Psychlops Win32 1.5.3 / 20110311\r
+///- Prefix\r
+\r
+///+ Stimulus drawing function\r
+//// A function for stimulus drawing (main body)\r
void psychlops_main() {\r
\r
Canvas cnvs(Canvas::window);\r
///- Stimulus drawing function\r
\r
\r
-#if 0\r
\r
#include <psychlops.h>\r
using namespace Psychlops;\r