Beispiel #1
0
        public void Cycle()
        {
            // Process the current iteration
            if (currIteration < nComputeIterations)
            {
                if (autoClearScreen)
                {
                    Canvas.Clear();
                }
                CurrentPage.Cycle(Canvas, currIteration);
            }
            else
            {
                if (autoFlushBuffer)
                {
                    TargetScreen
                    .FlushBufferToScreen(
                        CurrentPage.invertColors,
                        currIteration - nComputeIterations,     // Drawing comes after computing
                        nDrawIterations
                        );
                }
            }

            // Go to the next iteration
            currIteration++;
            if (currIteration >= nIterations)
            {
                currIteration = 0;
            }
        }
Beispiel #2
0
 public void Clear()
 {
     map.Clear();
 }
Beispiel #3
0
 /// <summary>
 /// Handles the button click event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void button_Click(object sender, EventArgs e)
 {
     inkCanvas.Clear();
     Invalidate();
 }