Spline- Draw a quadratic curve of Bezier
Draw a Bezier quadratic curve in the graph.
- Spline(X1,Y1,X2,Y2,X3,Y3,X4,Y4[,R])
Parameters:
- (int) X1: horizontal coordinate of the starting point of the curve;
- (int) Y1: vertical coordinate of the starting point of the curve;
- (int) X2: horizontal coordinate of the first control point;
- (int) Y2: Vertical coordinate of the first control point;
- (int) X3: horizontal coordinate of the second control point;
- (int) Y3: Vertical coordinate of the second control point;
- (int) X4: horizontal coordinate of the ending point of the curve;
- (int) Y4: vertical coordinate of the ending point of the curve;
- (int) R: rotation expressed in degrees (optional).
Description:
Use Spline to draw a Bezier quadratic curve. The curve is defined by X1 Y1 (starting point), X2 Y2 X3 Y3 (the two control points) and X4 Y4 (the ending point).
The curve line is drawn using the current pen and color (Pen, ColorPen).
The optional parameter R defines the curve rotation around its hypothetical center, or around the point defined with the GraphicOrigin instruction. The value is expressed in degrees. If omitted the rotation is 0 degrees.
Drawing with the mouse:
See the ArcB instruction, a curve similar to Spline.