Name

update

Examples

import net.fladdict.oscillator.*;

Oscillator osc = new OscSin(30,100,50);

for(int i=0; i<100; i++){
  osc.update();
  point(i, osc.getValue());
}

Description

Updates current wave position and value. Oscillator increments its position until position reaches period. After that position will return to 0. If oscillator has period property that value is 100, it means 100 times of update() make oscillator to move initial position.

Syntax

  • osc.update()

Usage

  • Web & Application