20 public void DrawGraph(SKCanvas Canvas, SKPoint[] Points,
object[] Parameters, SKPoint[] PrevPoints,
object[] PrevParameters,
25 SKPoint Last =
default;
31 Pen =
Graph.
ToPen(Parameters[1], Parameters[2]);
34 foreach (SKPoint Point
in Points)
41 else if (Point.Y == Last.Y || Point.X == Last.X)
48 Path.LineTo(Last.X, Point.Y);
53 float xm = (Last.X + Point.X) / 2;
54 Path.LineTo(xm, Last.Y);
55 Path.LineTo(xm, Point.Y);
60 Path.LineTo(Point.X, Last.Y);
71 Canvas.DrawPath(Path, Pen);
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Contains information about the current drawing area.
Plots a two-dimensional horizontal line graph.
void DrawGraph(SKCanvas Canvas, SKPoint[] Points, object[] Parameters, SKPoint[] PrevPoints, object[] PrevParameters, DrawingArea DrawingArea)
Draws the graph on a canvas.
Painters for single-color graphs
static SKPaint ToPen(object Object, object Size)
Converts an object to a pen value.
Interface for 2D graph drawing functions.