OSDN Git Service

32
[psychlops/silverlight.git] / test3 / PsychlopsMain.cs
index 30683f8..1991b9d 100644 (file)
@@ -20,12 +20,13 @@ namespace PsychlopsSilverlight3test
                        img = new Image(isize * 2, isize * 2);\r
                        fixation = new Rectangle(10, 10);\r
                        fixation.fill = Color.red;\r
+                       var poly = new Rectangle(100, 100);\r
                        //var poly = new Letters("日本語");\r
-                       var poly = new Polygon(); poly.append(0, 100); poly.append(-100, 0); poly.append(0, -100); poly.append(100, 0);\r
+                       //var poly = new Polygon(); poly.append(0, 100); poly.append(-100, 0); poly.append(0, -100); poly.append(100, 0);\r
                        //var poly = new Ellipse(100, 100);\r
                        //var poly = new Line(0,0,100, 0);\r
                        poly.fill = Color.red;\r
-                       poly.stroke.set(Color.green, 10);\r
+                       poly.stroke = new Stroke { color = Color.yellow, thick = 1 };\r
                        shape = poly;\r
 \r
 \r
@@ -40,7 +41,7 @@ namespace PsychlopsSilverlight3test
 \r
                                //Figures.drawGabor(ref img, 20, 100, 1, 0, frames * 2.0 * Math.PI / tfreq / 60);\r
                                //Figures.drawGaussian(ref img, 20, 1);\r
-                               Figures.drawGrating(ref img, 500, 500, 20, 1, 2, frames * 2.0 * Math.PI / tfreq / 60);\r
+                               Figures.drawGrating(ref img, 100, 100, 20, 1, 2, frames * 2.0 * Math.PI / tfreq / 60);\r
                                img.centering(Mouse.position);\r
                                img.draw();\r
 \r
@@ -51,7 +52,8 @@ namespace PsychlopsSilverlight3test
                                cnvs.var(frames, 10, 20);\r
 \r
                                fixation.shift(100,100);\r
-                               fixation.draw(Color.blue);\r
+                               fixation.draw(new Stroke(Color.blue, 3));\r
+                               AppState.statusBar = "dhdyr";\r
 \r
                                cnvs.flip();\r
                        }\r