# Tag Archives: curve

## Draw an improved heartagram in C#

My previous post Draw a heartagram in C# uses a smooth curve to draw the curved part of a heartagram. The result is pretty good, but if you look closely you’ll see that its edges curve in to the shape’s … Continue reading

Posted in drawing, graphics | | Comments Off on Draw an improved heartagram in C#

## Draw a heartagram in C#

The heartagram is a symbol created by vocalist Ville Valo and used by the band HIM. I’m not particularly a fan, but I think the heartagram shape is interesting so I wanted to make one with a C# program. The … Continue reading

Posted in drawing, graphics | | 1 Comment

## See if the mouse is over a curve in C#

The post Draw a smooth curve connecting points in C# uses the Graphics class’s DrawCurve method to draw a smooth curve that connects a collection of points. This example shows how you can tell when the mouse is over the … Continue reading

Posted in algorithms, drawing, graphics | | 1 Comment

## Draw a curve with negative tension in C#

The post Draw a curve with varying tensions in C# uses the Graphics class’s DrawCurve method to draw a set of curves with different tensions. While experimenting with that example, I tried drawing a curve with a negative tension, fully … Continue reading

Posted in drawing, graphics | | Comments Off on Draw a curve with negative tension in C#

## Draw a curve with varying tensions in C#

The example Change tension for a smooth curve in C# shows how to use the Graphics class’s DrawCurve draw method to draw a smooth curve connecting a sequence of points. The method’s tension parameter lets you change how directly the … Continue reading

Posted in drawing, graphics | | 1 Comment

## Change tension for a smooth curve in C#

The post Draw a smooth curve connecting points in C# explains how you can use the Graphics class’s DrawCurve method to draw a smooth curve that connects a sequence of points. It uses the following code. e.Graphics.DrawCurve(Pens.Red, Points.ToArray()); This example … Continue reading

Posted in drawing, graphics | | Comments Off on Change tension for a smooth curve in C#

## Draw a smooth curve connecting points in C#

The Graphics class’s DrawCurve method draws a smooth curve connecting a sequence of points. The type of curve drawn is called a spline. In general, a spline is a smooth curve with a shape determined by a collection of control … Continue reading

Posted in drawing, graphics | | 7 Comments