P5js > Oscillation
Contents (hide)
let oscillation = sin(frameCount * vitesseOscillation ) * amplitudeOscillation + centreOscillation;