OSDN Git Service

123
[psychlops/silverlight.git] / test4 / PsychlopsMain.cs
index 32ba5e8..b9daaa9 100644 (file)
@@ -1,4 +1,5 @@
 \r
+/*\r
 using Psychlops;\r
 \r
 namespace PsychlopsSilverlight4test\r
@@ -45,9 +46,8 @@ namespace PsychlopsSilverlight4test
 \r
 }\r
 \r
+*/\r
 \r
-\r
-/*\r
 using Psychlops;\r
 \r
 namespace Psychlops\r
@@ -75,6 +75,7 @@ namespace Psychlops
 }\r
 \r
 \r
+\r
 namespace PsychlopsSilverlight4test\r
 {\r
 \r
@@ -111,9 +112,10 @@ namespace PsychlopsSilverlight4test
                        dots = new RandomDots();\r
 \r
 \r
-                       while(true) {\r
+                       while (true)\r
+                       {\r
                                frames++;\r
-                               \r
+\r
                                cnvs.clear(new Color(Mouse.left.pressed() ? 0.75 : 0.5));\r
                                col.set(Math.random(1.0));\r
 \r
@@ -126,17 +128,17 @@ namespace PsychlopsSilverlight4test
                                img.centering(Mouse.position);\r
                                img.draw();\r
 \r
-                               shape.centering(Mouse.position).shift(100,0);\r
+                               shape.centering(Mouse.position).shift(100, 0);\r
                                shape.draw();\r
                                if (Keyboard.spc.pressed()) cnvs.var(Mouse.x, 100, 100);\r
 \r
                                cnvs.var(frames, 20, 20);\r
-                               slider.value = frames/100.0;\r
+                               slider.value = frames / 100.0;\r
 \r
-                               fixation.shift(100,100);\r
+                               fixation.shift(100, 100);\r
                                fixation.draw(new Stroke(Color.blue, 3));\r
 \r
-                               for (int i=0; i<dots.cood.Length; i++)\r
+                               for (int i = 0; i < dots.cood.Length; i++)\r
                                {\r
                                        dots.cood[i].set(Math.random(500), Math.random(500));\r
                                }\r
@@ -148,4 +150,6 @@ namespace PsychlopsSilverlight4test
        }\r
 \r
 }\r
-*/
\ No newline at end of file
+\r
+\r
+\r