PeachDrawing.Core
PeachDrawing.Core.Geometry.PathShapes
PathShapes.AddWave(this GraphicsPath, PaintPoint, PaintPoint, double, double) Method
Adds an open wavy line from start to end: a smooth wave built from cubic Béziers, one full period every wavelength along the line, swinging amplitude to either side of it. The wave starts on the line and swings to the left of the direction of travel first.
public static void AddWave(this PeachDrawing.Core.GraphicsPath path, PeachDrawing.Core.PaintPoint start, PeachDrawing.Core.PaintPoint end, double amplitude, double wavelength);
Parameters
path GraphicsPath
the path to add to
start PaintPoint
where the wave starts
end PaintPoint
where the wave ends
amplitude System.Double
the distance from the line to each crest
wavelength System.Double
the length of one full period along the line