コード例 #1
0
ファイル: App.xaml.cs プロジェクト: atsushieno/mldsp
 // placeholder for global functions
 public static void setup()
 {
     font_title = ProcessingApplication.Current.@createFont (@"PalatinoLinotype-BoldItalic", 16);
     font16 = ProcessingApplication.Current.@createFont (@"Tahoma", 16);
     font8 = ProcessingApplication.Current.@createFont (@"Tahoma", 8);
     ProcessingApplication.Current.@size (760, ch_height * channels + 10);
     ProcessingApplication.Current.@background (color_background);
     for (int i = 0; i < channels; i = i + 1)
     {
     setupChannelInfo (i);
     }
     for (int i = 0; i < channels; i = i + 1)
     {
     setupKeyboard (i);
     }
     ProcessingApplication.Current.@pushMatrix ();
     ProcessingApplication.Current.@translate (400, 0);
     setupPlayInfoSection ();
     ProcessingApplication.Current.@popMatrix ();
     ProcessingApplication.Current.@pushMatrix ();
     ProcessingApplication.Current.@translate (400, 160);
     ProcessingApplication.Current.@popMatrix ();
 }
コード例 #2
0
 public void textFont(PFont font, double size)
 {
     text_font = new PFont (font.Name, size, font.Smooth, font.Charset);
 }
コード例 #3
0
 public void textSize(double value)
 {
     text_font = new PFont (text_font.Name, value, text_font.Smooth, text_font.Charset);
 }
コード例 #4
0
 public void textFont(PFont font)
 {
     text_font = font;
 }