3 namespace PsychlopsSilverlight3test
\r
5 public class PsychlopsMain
\r
16 public System.Collections.Generic.IEnumerator<int> psychlops_main()
\r
18 cnvs = new Canvas(500, 500);
\r
19 img = new Image(isize * 2, isize * 2);
\r
20 fixation = new Rectangle(10, 10);
\r
21 var poly = new Letters("日本語");
\r
23 cnvs.clear(Color.gray);
\r
28 cnvs.clear(new Color(Mouse.left.pressed() ? 0.75 : 0.25));
\r
29 col.set(Math.random(1.0));
\r
31 fixation.centering();
\r
32 fixation.draw(Color.red);
\r
34 Figures.drawGabor(ref img, 20, 100, 1, 0, frames * 2.0 * Math.PI / tfreq / 60);
\r
35 //Figures.drawGaussian(ref img, 20, 1);
\r
36 //Figures.drawGrating(10, 1, 2, cnvs.frame * 2.0 * Math.PI / tfreq / 60);
\r
37 img.centering(Mouse.position);
\r
40 shape.centering(Mouse.position);
\r
41 shape.draw(Color.red);
\r
42 if (Keyboard.spc.pressed()) cnvs.var(Mouse.x, 100, 100);
\r
44 cnvs.var(frames, 10, 20);
\r