Ejemplo n.º 1
0
 // 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 ();
 }
 public void textFont(PFont font, double size)
 {
     text_font = new PFont (font.Name, size, font.Smooth, font.Charset);
 }
 public void textSize(double value)
 {
     text_font = new PFont (text_font.Name, value, text_font.Smooth, text_font.Charset);
 }
 public void textFont(PFont font)
 {
     text_font = font;
 }