Tag Archives: curve

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 | Tagged , , , , , , , , , , , , | 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 | Tagged , , , , , , , , , , , , , | Leave a comment

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 | Tagged , , , , , , , , , , , , | 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 | Tagged , , , , , , , , , , , | Leave a comment

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 | Tagged , , , , , , , , , , | 5 Comments