setCurve method

dynamic setCurve(
  1. dynamic index,
  2. 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

Implementation

setCurve(index, curveNo) {
  if (curveNo == null) throw ('curve index being set is Not a Number (NaN)');
  this.whichCurve[index] = curveNo;
  this.writeChanges(index);
}