Curve

Represents a Beziere Curve object.

new Curve(ctx: any)
Parameters
ctx (any)
Instance Members
drawCurve(p0, p1)
drawAuxiliary(p0, p1, depth)
drawPoints(p)
drawBackground()
generateRandomPoints(width, height)
bezierAlgorithm(temp, depth)
addPoint(x, y)
removePoint(x, y)
movePoint(x, y, newX, newY)

Point

Represents a Point object.

new Point(x: any, y: any)
Parameters
x (any)
y (any)

Helper

Helper Class

new Helper()
Instance Members
pointMultiply(p, t)
pointAddition(p1, p2)