From 310dce2067a0458ae2c0ec616c87b4e4e67f7752 Mon Sep 17 00:00:00 2001 From: HOSOKAWA Kenchi Date: Sat, 13 Mar 2010 16:58:06 +0900 Subject: [PATCH] 12 --- dev3/PsychlopsSilverlight3.csproj | 1 + dev3/psychlops/extention/standard/figures.cs | 54 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 dev3/psychlops/extention/standard/figures.cs diff --git a/dev3/PsychlopsSilverlight3.csproj b/dev3/PsychlopsSilverlight3.csproj index 7d45238..0b09745 100644 --- a/dev3/PsychlopsSilverlight3.csproj +++ b/dev3/PsychlopsSilverlight3.csproj @@ -56,6 +56,7 @@ + diff --git a/dev3/psychlops/extention/standard/figures.cs b/dev3/psychlops/extention/standard/figures.cs new file mode 100644 index 0000000..6d512f6 --- /dev/null +++ b/dev3/psychlops/extention/standard/figures.cs @@ -0,0 +1,54 @@ +namespace Psychlops +{ + + public static class Figures + { + /* + public static void drawGrating(out Image img, int width , int height, double frequency, double contrast, double orientation, double phase) + { + if(img.width != width || img.height != height) img = new Image(width, height); + double xp, yp, r, freq = frequency*2*PI; + for(int y=0; y new Color(.5 + Math.gaussian(Math.radius(x - width, y - height), width / 8.0) * .5 * Math.sin(phase + x * freq)) + ); + } + + } +} -- 2.11.0