From 2025e2db455b85eae3dec989bdfd39f3c1292df1 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 29 Aug 2010 09:37:18 +0900 Subject: [PATCH] 456 --- dev4/PsychlopsSilverlight4.csproj | 12 +- dev4/psychlops/core/graphic/canvas.cs | 16 +- dev4/psychlops/core/graphic/font.cs | 6 + dev4/psychlops/core/graphic/image.cs | 6 + dev4/psychlops/core/graphic/module.cs | 5 +- dev4/psychlops/core/graphic/shape.cs | 24 ++ dev4/psychlops/extention/math/solver.cs | 2 + test4/MainPage.xaml.cs | 12 +- test4/PsychlopsMain.cs | 510 +++----------------------------- test4/PsychlopsSilverlight4test.csproj | 7 +- test4/Resources/logo.png | Bin 8396 -> 0 bytes test4/Store.cs | 394 +++++++++++++++++++++++- test4/TestPage.html | 378 ++++++++++++++++++----- 13 files changed, 808 insertions(+), 564 deletions(-) delete mode 100644 test4/Resources/logo.png diff --git a/dev4/PsychlopsSilverlight4.csproj b/dev4/PsychlopsSilverlight4.csproj index 62b4e86..f2dcc40 100644 --- a/dev4/PsychlopsSilverlight4.csproj +++ b/dev4/PsychlopsSilverlight4.csproj @@ -55,20 +55,18 @@ - - - False + WriteableBitmapEx\WriteableBitmapEx.dll - + BinomialSolver.xaml - + @@ -94,10 +92,10 @@ - + Designer MSBuild:Compile - + - - PsychlopsSilverlight4test - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
- -
- -
-
- - - - - - - - - - Microsoft Silverlight を入手 - -
-
+
+ + + +
+ + + + +

Basic Code Step1

+ +
+ +
+ +
+ +
+///+ Prefix
+//// Lines for set up Psychlops environment
+#include <psychlops.h>
+using namespace Psychlops;
+///- Prefix
+ 
+///+ Main Routine
+//// Psychlops runs at the first line of this function psychlops_main().
+void psychlops_main() {
+	///+ 1
+    //// Set a window for drawing stimulus
+    Canvas window(Canvas::window); //Create a window. Here, window variables are preset mode.
+    // You can write this statement as" Canvas window(Canvas::fullscreen); " for fullscreen mode
+    // or as " Canvas window(1024, 768, 32, 60.0); " This statement changes screenmode to 1024 x 768, 32bit color, 60 Hz refresh.
+	///- 1
+	
+	///+ 2
+	////  Set a figure size, position and color.
+    Psychlops::Rectangle/*ID:FIGURE selector Rectangle Ellipse*/ figure; //Create a figure (Rectangle or Ellipse) variable.
+    
+    figure.set( 100/*ID:SIZE_X 1 200 10*/, 100/*ID:SIZE_Y 1 200 10*/ ); // Set the size of figure.
+    figure.centering();   // Centering the figure in the window
+    figure.shift( 10/*ID:SHIFT_X -100 100 10*/, 10/*ID:SHIFT_Y -100 100 10*/ ); // Displacing the figure by designated vector.    
+    figure.draw( Color( 1.0/*ID:COLOR_R 0 1.0 0.1*/, 0.0/*ID:COLOR_G 0.0 1.0 0.1*/, 0.0/*ID:COLOR_B 0 1.0 0.1*/) ); // Drawing the rectangle with a designated color.
+    
+    window.flip(); // Reflect the drawing for the display by flipping frame buffers.
+                   // Till this point, you will not see drawn figures.
+	///- 2
+    
+	///+ 3 
+	//// Detect a Keyboard input
+    while(!Keyboard::esc.pushed()) {} //exit a program when the escape key is pressed down.
+    ///- 3
+ 
+}
+///- Main Routine
+
+
+ +
+ + +
+
Bin/Debug/PsychlopsSilverlight4test.xap
+
+ +
+ +
+ + + + +
+ +
+ 上記の文字はPsychlopsのコードです。そしてコードの実行結果はコード右のウィンドウに表示されています。
+ コード内の太文字をクリックするとマウス操作で値を変えることができ、結果がすぐに反映されます。 + また、コード内の青い文字をロールオーバすると、ポップアップで説明が現れます。 +
+ +
+
-- 2.11.0