Category Archives: drawing

Graph COVID-19 recoveries and deaths per resolution in C#

Previous examples have shown how to graph COVID-19 cases, cases per million, deaths, and deaths per million. This example graphs recoveries, recoveries per million, and what is probably the most important value deaths per resolution. The previous example showed how … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Graph COVID-19 deaths and deaths per million in C#

The previous example showed how to graph COVID-19 cases and cases per million. This example adds the ability to graph COVID-19 deaths and deaths per million. Recall that the previous example’s CountryData class used two arrays of data, Cases and … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , | 1 Comment

Graph COVID-19 cases per million in C#

The example Align graphs of COVID-19 case data in C# lets you load COVID-19 case data and display it, optionally aligning different countries’ graphs on the left so they start with roughly the same number of cases. That makes it … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , | Leave a comment

Align graphs of COVID-19 case data in C#

The example Download and graph COVID-19 case data in C# shows how to graph different countries’ COVID-19 case data. The graphs are informative. For example, they can show you whether a country’s graph is upward bending or whether it has … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , | 1 Comment

Draw lines with gaps to show they are passing under other lines in C#

This example shows how to draw lines with gaps in them to show that they are passing under other lines. It seems like there must be a name for this, but I couldn’t find it so I’m calling them “cut … Continue reading

Posted in drawing, graphics, Uncategorized | Tagged , , , , , , , , | Leave a comment

Animate maze solving, version 3

The previous maze-solving examples Animate maze solving, version 1 and Animate maze solving, version 2 used a recursive method named Solve that returns an IEnumerable containing the paths that the program was searching. Removing Recursion To remove the recursion, think … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , | Leave a comment

Animate maze solving, version 2

My earlier post Animate maze solving, version 1 uses a method that returns an enumeration to show the steps used to find a path through a maze. That method works but it uses a loop that includes calls to Thread.Sleep … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , | Leave a comment

Animate maze solving, version 1

The post Solve mazes in C# solves mazes very quickly, but it only shows you the final path from the start point to the end point. It might be nice to make a program to animate maze solving so you … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , | 2 Comments

Solve mazes in C#

This example shows how to solve mazes that were created by the example Make and draw a maze in C#. See that example for information about how to build a maze. Read the following sections to learn how to solve … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , | 1 Comment

Draw a horizontal compass in C#

This example shows how to draw the horizontal compass shown at the bottom of the picture on the right. On the surface this seems like a simple drawing exercise. It mostly is a drawing exercise, although it turned out to … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , | 1 Comment