public static void ApplyFunction(Kugelmatik kugelmatik, TimeSpan time, IChoreographyFunction function)
 {
     for (int x = 0; x < kugelmatik.StepperCountX; x++)
         for (int y = 0; y < kugelmatik.StepperCountY; y++)
         {
             Stepper stepper = kugelmatik.GetStepperByPosition(x, y);
             stepper.Set(function.GetHeight(stepper.Cluster, time, x, y));
         }
 }
Exemple #2
0
 public ShowEntry(TimeSpan time, IChoreographyFunction choreography)
 {
     this.Time = time;
     this.Choreography = choreography;
 }
 public ChoreographyDirect(IChoreographyFunction function)
 {
     this.Function = function;
 }
 public ChoreographyManager(Kugelmatik kugelmatik, int targetFPS, IChoreographyFunction choreography)
     : this(kugelmatik, targetFPS, new ChoreographyDirect(choreography))
 {
 }