moveIndividualAlongCurve method

dynamic moveIndividualAlongCurve(
  1. dynamic index,
  2. int offset
)

Move an individual element along the curve by a specific amount

@param {number} index Which element to update @param {number} offset Move by how much

Implementation

moveIndividualAlongCurve(index, int offset) {
  offsets[index] += offset;
  writeChanges(index);
}