Tag Archives: circles

Draw an interesting pattern of circles in C#

This program simply draws an interesting arrangement of circles. I wrote it because a C# Helper post was mentioned on this Factal [sic] Patterns & Art page. This program uses the following code to draw the circles and connecting lines. … Continue reading

Posted in algorithms, drawings, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , | Leave a comment

Randomly color an Apollonian gasket in C#

This example is similar to the example Draw an Apollonian gasket in C# except it fills the circles it draws with random colors. The program uses the following code to generate random colors. // Return a random color. private Random … Continue reading

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

Draw an Apollonian gasket in C#

The example Find circles that are tangent to three given circles (Apollonius’ Problem) in C# shows how to find up to eight circles that are tangent to three given circles. This example uses that method to build an Apollonian gasket. … Continue reading

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

Draw three circles and find their tangent circles in C#

This example is similar to previous one Find circles that are tangent to three given circles (Apollonius’ Problem) in C# except it lets you click and drag to draw the three given circles. It then finds the (up to) 8 … Continue reading

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

Find circles that are tangent to three given circles (Apollonius’ Problem) in C#

Given three objects that can be a point, line, or circle, you can try to draw circles that are tangent to each. The case using three circles is called Apollonius’ Problem. Originally these problems were studied by Euclid (ca. 300 … Continue reading

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

Draw a circle through three points in C#

The perpendicular bisector of any chord on a circle passes through the circle’s center. To find the center given three points, simply find the perpendicular bisectors of the first two and last two pairs of points, and see where the … Continue reading

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

Partition an area with circles and draw each region’s count in C#

This example shows how you can partition an area with circles and determine the number of circles that contain each of the pieces. The example Find the area where circles overlap in C# explains how to find the area where … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , | 4 Comments

Find the area where circles overlap in C#

This example shows how you can find the area where circles overlap in a .NET program. The example Determine where two circles intersect in C# shows how to find the points where two circles intersect. Finding the area where more … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , , , , | 5 Comments