Curve
Curve
A representation of a Curve shape.
Constructor
public Curve
new Curve(curve)
Constructor for Curve.
Parameters
-
curve: BezierCurve
– Bezier curve.
new Curve(p1, p2, c1, c2)
Constructor for Curve.
Parameters
p1: Vector
– Control point of curve.p2: Vector
– Control point of curve.c1: Vector
– Control point of curve.c2: Vector
– Control point of curve.
Properties
No publicly accessible properties on Curve
protected curve: BezierCurve
Description needed
Methods
public draw
draw(ctx) => void
Draws the Curve on the canvas.
Parameters
-
ctx: CanvasRenderingContext2D
– Provides the 2D rendering context for the drawing surface of an element.
Static Methods
No static methods for Curve