# Tag Archives: circles

## Make an Apollonian gasket filled with images in C#

This example shows how to draw an Apollonian gasket filled with images of a cat. (I promise that this will be my last cat fractal for a while, although I may have one other cat image post coming up. ;-)) … Continue reading

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

## 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

## 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

## 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 | | 3 Comments

## 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

## 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

## 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

## 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 | | 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