addParametricCallback

public PathBuilder addParametricCallback(double t, Runnable runnable)

This adds a parametric callback on the last Path added to the PathBuilder. This callback is set to run at a certain point on the Path.

Return

This returns itself with the updated data.

Parameters

t

This sets the t-value (parametric time) on the Path for when to run the callback.

runnable

This sets the code for the callback to run. Use lambda statements for this.