class motion.MotionPath

Instance Fields

function new(): Void

function bezier(x:Float, y:Float, controlX:Float, controlY:Float, ?strength:Float): MotionPath

Adds a bezier curve to the current motion path

x

The x position of the end point for the curve

y

The y position of the end point for the curve

controlX

The x position of the control point for the curve, which affects the angle and midpoint

controlX

The x position of the control point for the curve, which affects the angle and midpoint

strength

The degree of emphasis that should be placed on this segment. If a motion path contains multiple segments with the same strength, they all receive equal emphasis (Default is 1)

returns

The current motion path instance

function line(x:Float, y:Float, ?strength:Float): MotionPath

Adds a line to the current motion path

x

The x position of the end point for the line

x

The y position of the end point for the line

strength

The degree of emphasis that should be placed on this segment . If a motion path contains multiple segments with the same strength, they all receive equal emphasis (Default is 1)

returns

The current motion path instance