setCurve method
dynamic
setCurve(
- dynamic index,
- dynamic curveNo
- Select which curve to use for an element
*
- @param {number} index the index of the instanced element to update
- @param {number} curveNo the index of the curve it should use
- @param {number} index the index of the instanced element to update
Implementation
setCurve(index, curveNo) {
if (curveNo == null) throw ('curve index being set is Not a Number (NaN)');
this.whichCurve[index] = curveNo;
this.writeChanges(index);
}